From 6f3bf48d3096a64b0c84d875a9156c01fd0f92b2 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Mon, 16 Nov 2020 16:18:06 +0100 Subject: [PATCH] add specific totp label for dev env --- app/controllers/super_admins_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/super_admins_controller.rb b/app/controllers/super_admins_controller.rb index 7b5bf18d4..e6c726426 100644 --- a/app/controllers/super_admins_controller.rb +++ b/app/controllers/super_admins_controller.rb @@ -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