mirror of
https://github.com/syssecfsu/witty.git
synced 2025-06-19 21:27:23 +02:00
save
This commit is contained in:
parent
5052b491f6
commit
d7e3bfd4e9
@ -71,6 +71,11 @@ func AddUser(username string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(passwd) < 12 {
|
||||||
|
fmt.Println("Password too short, at least 12 bytes")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Println("Please type your password again:")
|
fmt.Println("Please type your password again:")
|
||||||
passwd2, err := term.ReadPassword(int(os.Stdin.Fd()))
|
passwd2, err := term.ReadPassword(int(os.Stdin.Fd()))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user