Fix devise error
This commit is contained in:
parent
0317955082
commit
ccd136a880
|
@ -15,9 +15,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
|||
protected
|
||||
|
||||
def update_sanitized_params
|
||||
devise_parameter_sanitizer.for(:sign_up) do |u|
|
||||
u.permit(:uname, :name, :email, :password, :password_confirmation)
|
||||
end
|
||||
devise_parameter_sanitizer.permit(:sign_up, keys: [:uname, :name, :email, :password, :password_confirmation])
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue