Added ability to add public key to account.

This commit is contained in:
Logan Fick
2017-10-12 20:46:23 -04:00
parent 611c52223a
commit 3e7a0e550f
3 changed files with 10 additions and 2 deletions

View File

@@ -352,7 +352,7 @@ class UsersController < ApplicationController
end
def user_params(add = [])
a = [:ign, :email, :password, :password_confirmation, :mail_own_thread_reply, :mail_other_thread_reply, :mail_own_blogpost_comment, :mail_other_blogpost_comment, :mail_mention] + add
a = [:ign, :email, :password, :password_confirmation, :mail_own_thread_reply, :mail_other_thread_reply, :mail_own_blogpost_comment, :mail_other_blogpost_comment, :mail_mention, :public_key] + add
params.require(:user).permit(a)
end
end