diff options
-rw-r--r-- | app/controllers/profiles/two_factor_auths_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/profiles/two_factor_auths_controller.rb b/app/controllers/profiles/two_factor_auths_controller.rb index 42579b3eb44..e7579c652fb 100644 --- a/app/controllers/profiles/two_factor_auths_controller.rb +++ b/app/controllers/profiles/two_factor_auths_controller.rb @@ -43,8 +43,12 @@ class Profiles::TwoFactorAuthsController < Profiles::ApplicationController private def build_qr_code - issuer = "GitLab | #{current_user.email}" + issuer = "#{issuer_host} | #{current_user.email}" uri = current_user.otp_provisioning_uri(current_user.email, issuer: issuer) RQRCode::render_qrcode(uri, :svg, level: :m, unit: 3) end + + def issuer_host + Gitlab.config.gitlab.host + end end |