Update code to allow recovery phone to be cleared (#1052)

This commit is contained in:
Ross Scroggs
2019-12-09 10:50:32 -08:00
committed by Jay Lee
parent a0c410be0e
commit dea2958d9d

View File

@@ -7454,8 +7454,11 @@ def getUserAttributes(i, cd, updateCmd):
i += 2
elif myarg in ['recoveryphone']:
body['recoveryPhone'] = sys.argv[i+1]
if body['recoveryPhone'] and body['recoveryPhone'][0] != '+':
body['recoveryPhone'] = '+' + body['recoveryPhone']
if body['recoveryPhone']:
if body['recoveryPhone'][0] != '+':
body['recoveryPhone'] = '+' + body['recoveryPhone']
else:
body['recoveryPhone'] = None
i += 2
elif myarg == 'clearschema':
if not updateCmd: