diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-08-12 12:54:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-08-12 12:54:06 +0000 |
commit | 918a412fd4c807eacfb9986cd13d76b5e7978077 (patch) | |
tree | 10bd8e77921dd6aec767867e3bd5c3eb1bd41328 /app/controllers/account_controller.rb | |
parent | 039c333cec7588ec186b8b15ad570d4c62ce3d95 (diff) | |
download | redmine-918a412fd4c807eacfb9986cd13d76b5e7978077.tar.gz redmine-918a412fd4c807eacfb9986cd13d76b5e7978077.zip |
use String#casecmp for case insensitive comparison (#20369)
Contributed by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@14484 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/account_controller.rb')
-rw-r--r-- | app/controllers/account_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 57e08c348..798ccfb92 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -102,7 +102,7 @@ class AccountController < ApplicationController token = Token.new(:user => user, :action => "recovery") if token.save # Don't use the param to send the email - recipent = user.mails.detect {|e| e.downcase == email.downcase} || user.mail + recipent = user.mails.detect {|e| email.casecmp(e) == 0} || user.mail Mailer.lost_password(token, recipent).deliver flash[:notice] = l(:notice_account_lost_email_sent) redirect_to signin_path |