#1907 prosodyctl adduser: unexpected account creation on password mismatch
Reporter
Zash
Owner
Nobody
Created
Updated
Stars
ā (1)
Tags
Milestone-0.13
Priority-Medium
Type-Defect
Status-Accepted
Zash
on
1. run prosodyctl adduser with some jid
2. when asked to enter a password, write something
3. when asked to retype the password, write something _else_
4. when asked whether to retry
a. press enter
b. press n
expectation in case a: should have been asked to enter password again
expectation in case b: should have quit
reality: account created.
$ ./prosodyctl adduser u$RANDOM@$(hostname -f) hello
Enter new password:
Retype new password:
Passwords did not match, try again? [Y/n] ā
OK: Created u15673@diploria.example.org with role 'prosody:member'
$ ./prosodyctl adduser u$RANDOM@$(hostname -f) hello
Enter new password:
Retype new password:
Passwords did not match, try again? [Y/n] nā
OK: Created u30324@diploria.example.org with role 'prosody:member'
Version: https://hg.prosody.im/trunk/rev/c3a02b00cab2oh
1. run prosodyctl adduser with some jid 2. when asked to enter a password, write something 3. when asked to retype the password, write something _else_ 4. when asked whether to retry a. press enter b. press n expectation in case a: should have been asked to enter password again expectation in case b: should have quit reality: account created. $ ./prosodyctl adduser u$RANDOM@$(hostname -f) hello Enter new password: Retype new password: Passwords did not match, try again? [Y/n] ā OK: Created u15673@diploria.example.org with role 'prosody:member' $ ./prosodyctl adduser u$RANDOM@$(hostname -f) hello Enter new password: Retype new password: Passwords did not match, try again? [Y/n] nā OK: Created u30324@diploria.example.org with role 'prosody:member' Version: https://hg.prosody.im/trunk/rev/c3a02b00cab2oh