0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Allow bad usernames to fix #109

This commit is contained in:
Adrian Dvergsdal 2022-01-30 23:43:12 +01:00
parent 3ad35571d5
commit a8eae1de9e
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -34,7 +34,7 @@ IFS=':' read -ra args <<< "$1"
skipIndex=0
chpasswdOptions=""
useraddOptions=(--no-user-group)
useraddOptions=(--no-user-group --badnames)
user="${args[0]}"; validateArg "username" "$user" "$reUser" || exit 1
pass="${args[1]}"; validateArg "password" "$pass" "$rePass" || exit 1