Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/services/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,13 @@ public function getAuthErrorMessage(?string $defaultMessage = null): string
if ($user) {
$authError = UserHelper::getAuthStatus($user);
}
if ($authError == User::AUTH_INVALID_CREDENTIALS || !$authError) {
if (
$authError == User::AUTH_INVALID_CREDENTIALS ||
!$authError ||
// if preventUserEnumeration is true and the account is locked, still show the same message
(Craft::$app->getConfig()->getGeneral()->preventUserEnumeration &&
in_array($authError, [User::AUTH_ACCOUNT_LOCKED, User::AUTH_ACCOUNT_COOLDOWN]))
) {
if ($defaultMessage) {
return $defaultMessage;
}
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/authmethodsetup/dist/auth.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/authmethodsetup/dist/auth.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/web/assets/authmethodsetup/src/AuthMethodSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ Craft.AuthMethodSetup = Garnish.Base.extend(
},
() => {
button.classList.remove('loading');
},
// give them 5 minutes to complete setup
Math.min(Craft.elevatedSessionDuration, 300)
}
);
},

Expand Down
Loading