Make OTP secret longer

This commit is contained in:
Dominik Kwiatek 2020-10-19 20:25:18 +02:00
parent ea99805da1
commit 3211f8f59b
1 changed files with 1 additions and 1 deletions

View File

@ -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"))