Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-24 01:47:53 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-24 01:47:53 +0300
commit7b879bb8bded3aa7577133a9bc2be0c7fc97d855 (patch)
treef46f23642377c71429a6ee61810d52853e845fce /app/controllers/profiles/two_factor_auths_controller.rb
parente73ea12695c5b15c950a40adfceae83141124c20 (diff)
Bump secret key length to 32
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 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