diff --git a/Languages/en_US/General.php b/Languages/en_US/General.php index 32e4927fd2..95ad75f493 100644 --- a/Languages/en_US/General.php +++ b/Languages/en_US/General.php @@ -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.'; diff --git a/Sources/Actions/Login2.php b/Sources/Actions/Login2.php index 8625bde552..81c483d80f 100644 --- a/Sources/Actions/Login2.php +++ b/Sources/Actions/Login2.php @@ -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; } @@ -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; } @@ -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') . ' - ' . User::$profiles[User::$my_id]['member_name'] . '', 'user'); - Utils::$context['login_errors'] = [Lang::getTxt('incorrect_password', file: 'Login')]; + Utils::$context['login_errors'] = [Lang::getTxt('invalid_credentials', file: 'Login')]; return false; }