Check for deactivated account

main2
Bob Mottram 2019-11-05 12:29:53 +00:00
parent 39f8847b8d
commit a193530890
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ def accountExists(baseDir: str,nickname: str,domain: str) -> bool:
"""
if ':' in domain:
domain=domain.split(':')[0]
return os.path.isdir(baseDir+'/accounts/'+nickname+'@'+domain)
return os.path.isdir(baseDir+'/accounts/'+nickname+'@'+domain) or \
os.path.isdir(baseDir+'/deactivated/'+nickname+'@'+domain)
def createPersonBase(baseDir: str,nickname: str,domain: str,port: int, \
httpPrefix: str, saveToFile: bool,password=None) -> (str,str,{},{}):