about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2018-03-05 04:28:24 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-04 20:28:24 +0100
commitc110fa62ac0f475efd64572026835a7514c410ae (patch)
tree1ef16b5369a589fdb60b557f68c5a8288eaa83b6 /app
parent7a6eaad445ca009001a31657d163b0316b27e9e4 (diff)
Provide default OTP_SECRET value for development environment (#6617)
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 2995d6d54..b716c13fd 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -44,7 +44,7 @@ class User < ApplicationRecord
   ACTIVE_DURATION = 14.days
 
   devise :two_factor_authenticatable,
-         otp_secret_encryption_key: ENV.fetch('OTP_SECRET')
+         otp_secret_encryption_key: Rails.configuration.x.otp_secret
 
   devise :two_factor_backupable,
          otp_number_of_backup_codes: 10