From 3211f8f59b3d6776bbef64bcf9f89423f7bf763a Mon Sep 17 00:00:00 2001 From: Dominik Kwiatek Date: Mon, 19 Oct 2020 20:25:18 +0200 Subject: [PATCH] Make OTP secret longer --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 7bfabe55..409dae43 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -174,7 +174,7 @@ class UserController < ApplicationController end def edit_security - current_user.otp_secret_key = User.otp_random_secret + current_user.otp_secret_key = User.otp_random_secret(26) @provisioning_uri = current_user.provisioning_uri(nil, issuer: APP_CONFIG[:hostname]) qr_code = RQRCode::QRCode.new(current_user.provisioning_uri("Retrospring:#{current_user.screen_name}", issuer: "Retrospring"))