Skip to content

Commit 2f269fa

Browse files
author
Gabriel Monroy
committed
add simple password confirmation on registration fixes #188
1 parent 54902c4 commit 2f269fa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

client/deis.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,10 @@ def auth_register(self, args):
574574
password = args.get('--password')
575575
if not password:
576576
password = getpass('password: ')
577+
confirm = getpass('password (confirm): ')
578+
if password != confirm:
579+
print('Password mispatch, aborting registration.')
580+
return False
577581
email = args.get('--email')
578582
if not email:
579583
email = raw_input('email: ')

0 commit comments

Comments
 (0)