Skip to content

Commit

Permalink
remove useless line preventing sending the reset password email (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni authored Jan 26, 2024
1 parent 286b56b commit 4c2fe07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions helpers/users_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def send_reset_token(email, username)
error 404, "User not found" unless user
reset_token = token(36)
user.resetToken = reset_token

return user if user.valid?


user.save(override_security: true)
LinkedData::Utils::Notifications.reset_password(user, reset_token)
user
Expand Down

0 comments on commit 4c2fe07

Please sign in to comment.