email limit & password limit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user