lib/generators/authentication/templates/controllers/html/registrations_controller.rb.tt in authentication-zero-2.8.4 vs lib/generators/authentication/templates/controllers/html/registrations_controller.rb.tt in authentication-zero-2.9.0

- old
+ new

@@ -7,11 +7,11 @@ def create @<%= singular_table_name %> = <%= class_name %>.new(<%= "#{singular_table_name}_params" %>) if @<%= singular_table_name %>.save - session = @<%= singular_table_name %>.sessions.create!(session_params) + session = @<%= singular_table_name %>.sessions.create! cookies.signed.permanent[:session_token] = { value: session.id, httponly: true } redirect_to root_path, notice: "Welcome! You have signed up successfully" else render :new, status: :unprocessable_entity @@ -19,11 +19,7 @@ end private def <%= "#{singular_table_name}_params" %> 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 end