Merge pull request #5745 from betagouv/totp-change-label
add specific totp label for dev env
This commit is contained in:
commit
daa4cd0280
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class SuperAdminsController < ApplicationController
|
|||
|
||||
def generate_qr_code
|
||||
issuer = 'DSManager'
|
||||
issuer += "-dev" if Rails.env.development?
|
||||
label = "#{issuer}:#{current_super_admin.email}"
|
||||
RQRCode::QRCode.new(current_super_admin.otp_provisioning_uri(label, issuer: issuer))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue