summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/two_factor_auths_controller.rb
diff options
context:
space:
mode:
authorMarkus Koller <markus-koller@gmx.ch>2017-03-07 19:51:22 +0100
committerAlexis Reigel <mail@koffeinfrei.org>2017-04-06 10:01:13 +0200
commita49c5d18364fc3f4b475d639e5de55fd1558351c (patch)
tree707070d714f2a945411e9b120705074934d02646 /app/controllers/profiles/two_factor_auths_controller.rb
parent8e665140565a8c022bf1cad1589e244a543419fa (diff)
downloadgitlab-ce-a49c5d18364fc3f4b475d639e5de55fd1558351c.tar.gz
Rename skip_tfa session variable to skip_two_factor
Diffstat (limited to 'app/controllers/profiles/two_factor_auths_controller.rb')
-rw-r--r--app/controllers/profiles/two_factor_auths_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/two_factor_auths_controller.rb b/app/controllers/profiles/two_factor_auths_controller.rb
index 5e54fdfcf44..b52134d89a4 100644
--- a/app/controllers/profiles/two_factor_auths_controller.rb
+++ b/app/controllers/profiles/two_factor_auths_controller.rb
@@ -71,7 +71,7 @@ class Profiles::TwoFactorAuthsController < Profiles::ApplicationController
if two_factor_grace_period_expired?
redirect_to new_profile_two_factor_auth_path, alert: 'Cannot skip two factor authentication setup'
else
- session[:skip_tfa] = current_user.otp_grace_period_started_at + two_factor_grace_period.hours
+ session[:skip_two_factor] = current_user.otp_grace_period_started_at + two_factor_grace_period.hours
redirect_to root_path
end
end