Fix two-factor token creation for iOS devices, closes #1624
This commit is contained in:
parent
02ac308042
commit
47c12929c4
3 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,7 @@ value when showing an error state.
|
|||
* Scrolling on email settings page now works.
|
||||
* Database host management will now properly display an error message to the user when there is any type of MySQL related
|
||||
error encountered during creation or update.
|
||||
* Two-factor tokens generated when a company name has a space in it will now properly be parsed on iOS authenticator devices.
|
||||
|
||||
### Added
|
||||
* Server listing view now displays the total used disk space for each server.
|
||||
|
|
|
@ -71,7 +71,7 @@ class TwoFactorSetupService
|
|||
'totp_secret' => $this->encrypter->encrypt($secret),
|
||||
]);
|
||||
|
||||
$company = $this->config->get('app.name');
|
||||
$company = preg_replace('/\s/', '', $this->config->get('app.name'));
|
||||
|
||||
return sprintf(
|
||||
'otpauth://totp/%1$s:%2$s?secret=%3$s&issuer=%1$s',
|
||||
|
|
|
@ -60,7 +60,7 @@ class TwoFactorSetupServiceTest extends TestCase
|
|||
$response = $this->getService()->handle($model);
|
||||
$this->assertNotEmpty($response);
|
||||
|
||||
$companyName = preg_quote(rawurlencode('Company Name'));
|
||||
$companyName = preg_quote(rawurlencode('CompanyName'));
|
||||
$email = preg_quote(rawurlencode($model->email));
|
||||
|
||||
$this->assertRegExp(
|
||||
|
|
Loading…
Reference in a new issue