text changes, error styling, navbar menu styling

This commit is contained in:
jackiettran committed 2025-12-23 23:08:22 -05:00
1 parent 5ec22c2a5b
commit 2a32470758
5 files changed
+52 -16

No files matched your search

+2 -2
View File
@@ -81,7 +81,7 @@ const validateRegistration = [
.withMessage("Password must be between 8 and 128 characters")
.matches(passwordStrengthRegex)
.withMessage(
"Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character"
"Password does not meet requirements"
)
.custom((value) => {
if (commonPasswords.includes(value.toLowerCase())) {
@@ -275,7 +275,7 @@ const validateResetPassword = [
.withMessage("Password must be between 8 and 128 characters")
.matches(passwordStrengthRegex)
.withMessage(
"Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character"
"Password does not meet requirements"
)
.custom((value) => {
if (commonPasswords.includes(value.toLowerCase())) {
+2 -4
View File
@@ -206,8 +206,7 @@ router.post(
if (!user) {
return res.status(401).json({
error:
"Unable to log in. Please check your email and password, or create an account.",
error: "Please check your email and password, or create an account.",
});
}
@@ -226,8 +225,7 @@ router.post(
// Increment login attempts
await user.incLoginAttempts();
return res.status(401).json({
error:
"Unable to log in. Please check your email and password, or create an account.",
error: "Please check your email and password, or create an account.",
});
}