mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
add empty line after guard clause to lib/redmine/twofa/base.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20574 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
80f9312178
commit
1b111f9389
@ -114,6 +114,7 @@ module Redmine
|
|||||||
Token.where(user_id: @user.id).find_token('twofa_backup_code', code).try(:delete)
|
Token.where(user_id: @user.id).find_token('twofa_backup_code', code).try(:delete)
|
||||||
# make sure the user using the backup code is the same it's been issued to
|
# make sure the user using the backup code is the same it's been issued to
|
||||||
return false unless @user.present? && @user == user_from_code
|
return false unless @user.present? && @user == user_from_code
|
||||||
|
|
||||||
::Mailer.security_notification(
|
::Mailer.security_notification(
|
||||||
@user,
|
@user,
|
||||||
User.current,
|
User.current,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user