functionally completed user editing

This commit is contained in:
z1glr
2025-01-12 02:01:14 +00:00
parent ac6bf24d57
commit 0685283007
18 changed files with 410 additions and 132 deletions

View File

@@ -84,8 +84,10 @@ export class DateFormatter {
export function vaidatePassword(password: string): string[] {
const errors = [];
if (password.length < 1) {
errors.push("Password must be 16 characters or more");
if (password.length < 12) {
errors.push("Password must be 12 characters or more");
} else if (password.length > 64) {
errors.push("Password must be 64 characters or short");
}
return errors;