lib/generators/authentication/templates/controllers/html/registrations_controller.rb.tt in authentication-zero-2.8.2 vs lib/generators/authentication/templates/controllers/html/registrations_controller.rb.tt in authentication-zero-2.8.3
- old
+ new
@@ -18,10 +18,10 @@
end
end
private
def <%= "#{singular_table_name}_params" %>
- params.require(:<%= singular_table_name %>).permit(:email, :password, :password_confirmation)
+ params.permit(:email, :password, :password_confirmation)
end
def session_params
{ user_agent: request.user_agent, ip_address: request.remote_ip, sudo_at: Time.current }
end