lib/generators/authentication/templates/controllers/html/password_resets_controller.rb.tt in authentication-zero-2.4.0 vs lib/generators/authentication/templates/controllers/html/password_resets_controller.rb.tt in authentication-zero-2.5.0
- old
+ new
@@ -39,10 +39,10 @@
def <%= "#{singular_table_name}_params" %>
params.require(:<%= singular_table_name %>).permit(:password, :password_confirmation)
end
<% if options.lockable? %>
def require_locking
- Locking.lock_on("password_reset_lock_#{request.remote_ip}", wait: 1.hour, attempts: 10) do
+ Locking.lock_on("password_reset_lock:#{request.remote_ip}", wait: 1.hour, attempts: 10) do
redirect_to new_password_reset_path, alert: "You've exceeded the maximum number of attempts"
end
end
<% end -%>
end