mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Fix code to account for Google API change that prevented clearing a user's recovery phone. (#1116)
Before you had to pass None and the value, now you pass an empty string just like recovery email
This commit is contained in:
@@ -6140,11 +6140,8 @@ def getUserAttributes(i, cd, updateCmd):
|
|||||||
i += 2
|
i += 2
|
||||||
elif myarg in ['recoveryphone']:
|
elif myarg in ['recoveryphone']:
|
||||||
body['recoveryPhone'] = sys.argv[i+1]
|
body['recoveryPhone'] = sys.argv[i+1]
|
||||||
if body['recoveryPhone']:
|
if body['recoveryPhone'] and body['recoveryPhone'][0] != '+':
|
||||||
if body['recoveryPhone'][0] != '+':
|
|
||||||
body['recoveryPhone'] = '+' + body['recoveryPhone']
|
body['recoveryPhone'] = '+' + body['recoveryPhone']
|
||||||
else:
|
|
||||||
body['recoveryPhone'] = None
|
|
||||||
i += 2
|
i += 2
|
||||||
elif myarg == 'clearschema':
|
elif myarg == 'clearschema':
|
||||||
if not updateCmd:
|
if not updateCmd:
|
||||||
|
|||||||
Reference in New Issue
Block a user