Skip to content
Merged
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
1 change: 1 addition & 0 deletions Languages/en_US/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
$txt['registration_agreement'] = 'Registration Agreement';
$txt['privacy_policy'] = 'Privacy Policy';

$txt['invalid_credentials'] = 'The username or password you entered is incorrect';
$txt['username_no_exist'] = 'That username does not exist.';
$txt['no_user_with_email'] = 'There are no usernames associated with that email.';

Expand Down
6 changes: 3 additions & 3 deletions Sources/Actions/Login2.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public function main(): void
true,
)
) {
Utils::$context['login_errors'] = [Lang::getTxt('incorrect_password', file: 'Login')];
Utils::$context['login_errors'] = [Lang::getTxt('invalid_credentials', file: 'Login')];

return;
}
Expand All @@ -300,7 +300,7 @@ public function main(): void

// Let them try again, it didn't match anything...
if (empty($loaded)) {
Utils::$context['login_errors'] = [Lang::getTxt('username_no_exist', file: 'General')];
Utils::$context['login_errors'] = [Lang::getTxt('invalid_credentials', file: 'General')];

return;
}
Expand Down Expand Up @@ -642,7 +642,7 @@ protected function checkPasswordFallbacks(): bool
// Log an error so we know that it didn't go well in the error log.
ErrorHandler::log(Lang::getTxt('incorrect_password', file: 'Login') . ' - <span class="remove">' . User::$profiles[User::$my_id]['member_name'] . '</span>', 'user');

Utils::$context['login_errors'] = [Lang::getTxt('incorrect_password', file: 'Login')];
Utils::$context['login_errors'] = [Lang::getTxt('invalid_credentials', file: 'Login')];

return false;
}
Expand Down
Loading