mirror of https://gitlab.com/bashrc2/epicyon
Check that account exists
parent
69975ca092
commit
d9d0c886f8
|
@ -223,6 +223,9 @@ if args.changepassword:
|
|||
if len(newPassword)<8:
|
||||
print('Password should be at least 8 characters')
|
||||
sys.exit()
|
||||
if not os.path.isdir(baseDir+'/accounts/'+nickname+'@'+domain):
|
||||
print('Account '+nickname+'@'+domain+' not found')
|
||||
sys.exit()
|
||||
passwordFile=baseDir+'/accounts/passwords'
|
||||
if os.path.isfile(passwordFile):
|
||||
if nickname+':' in open(passwordFile).read():
|
||||
|
|
Loading…
Reference in New Issue