mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Fix arguments to find_by_token_for (#299)
This commit is contained in:
parent
77ff9fd2a2
commit
97789bc538
2 changed files with 31 additions and 1 deletions
|
@ -31,7 +31,7 @@ class PasswordResetsController < ApplicationController
|
|||
private
|
||||
|
||||
def set_user_by_token
|
||||
@user = User.find_by_token_for(password_reset: params[:token])
|
||||
@user = User.find_by_token_for(:password_reset, params[:token])
|
||||
redirect_to new_password_reset_path, alert: t("password_resets.update.invalid_token") unless @user.present?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue