summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-09 15:46:49 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-09 17:32:48 -0400
commitc845347b233b9bb40d9b304d864ac33e178429c1 (patch)
tree03e97a83966ef8ba0ac99bee67b08fa1f13ec9fa /app
parent5f43cae6ca2c9ebd3f6561a7b40c64c65913e064 (diff)
downloadgitlab-ce-c845347b233b9bb40d9b304d864ac33e178429c1.tar.gz
Generate 10 2FA backup codes instead of the default of 5
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 0969fa93088..70972eb2715 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -81,7 +81,7 @@ class User < ActiveRecord::Base
devise :two_factor_authenticatable,
otp_secret_encryption_key: File.read(Rails.root.join('.secret')).chomp
- devise :two_factor_backupable
+ devise :two_factor_backupable, otp_number_of_backup_codes: 10
serialize :otp_backup_codes, JSON
devise :lockable, :async, :recoverable, :rememberable, :trackable,