Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-18 12:08:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-18 12:08:09 +0300
commit990891feb7cb31269ad7ec13f359aea6b25c1f00 (patch)
tree0c1dba50660232fc0d9c1e37ea3e96783abca718 /app/controllers
parentccf350cb4cab8bcaa457313fea2d596d50cdf820 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/profiles/two_factor_auths_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/profiles/two_factor_auths_controller.rb b/app/controllers/profiles/two_factor_auths_controller.rb
index e83b72b71a8..f1646027e8e 100644
--- a/app/controllers/profiles/two_factor_auths_controller.rb
+++ b/app/controllers/profiles/two_factor_auths_controller.rb
@@ -140,7 +140,10 @@ class Profiles::TwoFactorAuthsController < Profiles::ApplicationController
def build_qr_code
uri = current_user.otp_provisioning_uri(account_string, issuer: issuer_host)
- RQRCode.render_qrcode(uri, :svg, level: :m, unit: 3)
+ RQRCode::QRCode.new(uri, level: :m).as_svg(
+ shape_rendering: "crispEdges",
+ module_size: 3
+ )
end
def account_string