email limit & password limit

This commit is contained in:
eson
2023-10-11 11:55:44 +08:00
parent 5b483dadb5
commit c6fa875148
5 changed files with 14 additions and 1 deletions

View File

@@ -118,7 +118,7 @@ func ValidateEmail(email string) bool {
// ValidatePassword checks if the provided password is strong enough.
// In this example, we just check if the password length is 8 or more.
func ValidatePassword(password string) bool {
const minPasswordLength = 8
const minPasswordLength = 30
return len(password) >= minPasswordLength
}