mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 21:53:36 +00:00
fix login_hint issues
This commit is contained in:
@ -9986,9 +9986,7 @@ See this site for instructions:
|
|||||||
print u'ERROR: the format of your client secrets file:\n\n%s\n\n is incorrect. Please recreate the file.'
|
print u'ERROR: the format of your client secrets file:\n\n%s\n\n is incorrect. Please recreate the file.'
|
||||||
sys.exit(3)
|
sys.exit(3)
|
||||||
|
|
||||||
try:
|
if not login_hint:
|
||||||
login_hint = sys.argv[3]
|
|
||||||
except IndexError:
|
|
||||||
while True:
|
while True:
|
||||||
login_hint = raw_input(u'\nWhat is your G Suite admin email address? ')
|
login_hint = raw_input(u'\nWhat is your G Suite admin email address? ')
|
||||||
if login_hint.find(u'@') == -1:
|
if login_hint.find(u'@') == -1:
|
||||||
@ -10441,7 +10439,7 @@ def ProcessGAMCommand(args):
|
|||||||
elif command in [u'oauth', u'oauth2']:
|
elif command in [u'oauth', u'oauth2']:
|
||||||
argument = sys.argv[2].lower()
|
argument = sys.argv[2].lower()
|
||||||
if argument in [u'request', u'create']:
|
if argument in [u'request', u'create']:
|
||||||
doRequestOAuth()
|
doRequestOAuth(login_hint=sys.argv[3])
|
||||||
elif argument in [u'info', u'verify']:
|
elif argument in [u'info', u'verify']:
|
||||||
OAuthInfo()
|
OAuthInfo()
|
||||||
elif argument in [u'delete', u'revoke']:
|
elif argument in [u'delete', u'revoke']:
|
||||||
|
Reference in New Issue
Block a user