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