Skip to content

Commit 6ba3ad7

Browse files
committed
Fixing some code apcing issues
1 parent 72dd76f commit 6ba3ad7

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

app/Http/RequestHandlers/LoginAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private function doLoginMfa(string $username, string $codemfa, CoreUser $user):
179179
throw new Exception(I18N::translate('Authentication code does not match. Please try again.'));
180180
}
181181
} else {
182-
throw new Exception(I18N::translate('Authentication code must be entered as you have multi-factor authentication enabled. Please try again.'));
182+
throw new Exception(I18N::translate('Authentication code must be entered as you have multi-factor authentication enabled. Please try again.'));
183183
}
184184
return "1";
185185
}

app/Services/QrcodeService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class QrcodeService
3030
{
3131
// If the form is completed faster than this, then suspect a robot.
3232
// private const float MINIMUM_FORM_TIME = 3.0;
33-
/**
34-
* Generate a QR code image based on 2FA secret and return both.
35-
*
36-
* @param UserInterface $user
37-
* @return array<string, mixed>
33+
/**
34+
* Generate a QR code image based on 2FA secret and return both.
35+
*
36+
* @param UserInterface $user
37+
* @return array<string, mixed>
3838
*/
3939

4040
public function genQRcode(UserInterface $user): array

app/User.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ public function setSecret(#[\SensitiveParameter] string $secret): User
262262

263263
return $this;
264264
}
265-
/**
266-
* Validate a supplied 2fa code
267-
*
268-
* @param string $codemfa
269-
*
270-
* @return bool
271-
*/
265+
/**
266+
* Validate a supplied 2fa code
267+
*
268+
* @param string $codemfa
269+
*
270+
* @return bool
271+
*/
272272
public function checkMfaCode(string $codemfa): bool
273273
{
274274
/** @var string $secret */
@@ -277,7 +277,7 @@ public function checkMfaCode(string $codemfa): bool
277277
->value('secret');
278278
$google2fa = new Google2FA();
279279
if ((bool)$google2fa->verifyKey($secret, $codemfa)) {
280-
return true;
280+
return true;
281281
}
282282
return false;
283283
}

0 commit comments

Comments
 (0)