mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
urlencode company name; closes #1690
This commit is contained in:
@@ -71,7 +71,7 @@ class TwoFactorSetupService
|
||||
'totp_secret' => $this->encrypter->encrypt($secret),
|
||||
]);
|
||||
|
||||
$company = preg_replace('/\s/', '', $this->config->get('app.name'));
|
||||
$company = urlencode(preg_replace('/\s/', '', $this->config->get('app.name')));
|
||||
|
||||
return sprintf(
|
||||
'otpauth://totp/%1$s:%2$s?secret=%3$s&issuer=%1$s',
|
||||
|
||||
Reference in New Issue
Block a user