Skip to content

Commit

Permalink
keep 500 error
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Nov 19, 2024
1 parent 7b15071 commit 3d11fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/newflow_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def create_password_email(user:, email:)
def reset_password_email(user:, email_address:)
@user = user

head :forbidden if user.login_token.nil? || user.login_token_expired?
raise "No valid login token" if user.login_token.nil? || user.login_token_expired?

mail to: "\"#{user.full_name}\" <#{email_address}>",
subject: "Reset your OpenStax password"
Expand Down

0 comments on commit 3d11fc5

Please sign in to comment.