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
|
def generate_qr_code
|
||||||
issuer = 'DSManager'
|
issuer = 'DSManager'
|
||||||
|
issuer += "-dev" if Rails.env.development?
|
||||||
label = "#{issuer}:#{current_super_admin.email}"
|
label = "#{issuer}:#{current_super_admin.email}"
|
||||||
RQRCode::QRCode.new(current_super_admin.otp_provisioning_uri(label, issuer: issuer))
|
RQRCode::QRCode.new(current_super_admin.otp_provisioning_uri(label, issuer: issuer))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue