diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-24 01:47:53 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-24 01:47:53 +0300 |
commit | 7b879bb8bded3aa7577133a9bc2be0c7fc97d855 (patch) | |
tree | f46f23642377c71429a6ee61810d52853e845fce /app/controllers/profiles/two_factor_auths_controller.rb | |
parent | e73ea12695c5b15c950a40adfceae83141124c20 (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.rb | 2 |
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 |