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