mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
11 lines
209 B
Go
11 lines
209 B
Go
package passwordutils
|
|
|
|
const MinPasswordLen = 12
|
|
|
|
func lengthCheck(password string) bool {
|
|
return len(password) >= MinPasswordLen
|
|
}
|
|
|
|
func StrengthCheck(password string) bool {
|
|
return lengthCheck(password)
|
|
}
|