Skip to content

Commit a51fa6c

Browse files
author
Gabriel Monroy
committed
Merge pull request #192 from opdemand/confirm-pw-on-register
Add simple password confirmation on registration
2 parents 54902c4 + 2f269fa commit a51fa6c

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)