Skip to content

Commit 97f0914

Browse files
author
Nicolas Heist
committed
TASK: Allow whitespaces within given secrets
1 parent 80f0d73 commit 97f0914

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Classes/Service/TwoFactorAuthenticationService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function validateSecret(string $secret, Account $account, bool $isInitial
3939
$secretIsValid = false;
4040
$credentials = $this->getTwoFactorAuthenticationCredentials($account);
4141
$userSecret = $isInitialValidation ? $credentials->pendingSecret : $credentials->secret;
42+
$secret = str_replace(' ', '', $secret);
4243

4344
try {
4445
$secretIsValid = (new Google2Fa())->verifyKey($userSecret, $secret);

0 commit comments

Comments
 (0)