X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d95c17e4f7ddcbb54db4f57472f1ab735e61fb16..a187c759b7d96be951e1667080c6e24e2288f166:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 0c10980ef..f12cb1051 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -74,6 +74,7 @@ class UserController < ApplicationController if user pass = User.make_token(8) user.pass_crypt = pass + user.pass_crypt_confirmation = pass user.save Notifier::deliver_reset_password(user, pass) flash[:notice] = "Your password has been changed and is on its way to your mailbox :-)"