add specific totp label for dev env
This commit is contained in:
parent
935e35d0fe
commit
6f3bf48d30
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…
Add table
Reference in a new issue