summaryrefslogtreecommitdiff
path: root/app/controllers/profiles
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-23 18:47:53 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-23 18:47:53 -0400
commit7b879bb8bded3aa7577133a9bc2be0c7fc97d855 (patch)
treef46f23642377c71429a6ee61810d52853e845fce /app/controllers/profiles
parente73ea12695c5b15c950a40adfceae83141124c20 (diff)
downloadgitlab-ce-7b879bb8bded3aa7577133a9bc2be0c7fc97d855.tar.gz
Bump secret key length to 32rs-manual-2fa-entry
Diffstat (limited to 'app/controllers/profiles')
-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 17abcea2068..42579b3eb44 100644
--- a/app/controllers/profiles/two_factor_auths_controller.rb
+++ b/app/controllers/profiles/two_factor_auths_controller.rb
@@ -1,7 +1,7 @@
class Profiles::TwoFactorAuthsController < Profiles::ApplicationController
def new
unless current_user.otp_secret
- current_user.otp_secret = User.generate_otp_secret(16)
+ current_user.otp_secret = User.generate_otp_secret(32)
current_user.save!
end