mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-10 14:43:34 +00:00
Validate full email address on gam oauth create <EmailAddress> (#321)
* Validate full email address on gam oauth create <EmailAddress> * Update documentation
This commit is contained in:
@ -477,7 +477,8 @@ gam csv <FileName>|- [charset <Charset>] gam <GAM argument list>
|
|||||||
# Example: gam csv Users.csv gam update user '~primaryEmail' address type work unstructured '~~Street~~, ~~City~~, ~~State~~ ~~ZIP~~'
|
# Example: gam csv Users.csv gam update user '~primaryEmail' address type work unstructured '~~Street~~, ~~City~~, ~~State~~ ~~ZIP~~'
|
||||||
# Each user (~primaryEmail, e.g. foo@bar.com) would have their work address updated
|
# Each user (~primaryEmail, e.g. foo@bar.com) would have their work address updated
|
||||||
|
|
||||||
gam oauth|oauth2 create|request
|
gam oauth|oauth2 create|request [<EmailAddress>]
|
||||||
|
|
||||||
gam oauth|oauth2 delete|revoke
|
gam oauth|oauth2 delete|revoke
|
||||||
gam oauth|oauth2 info|verify [<AccessToken>]
|
gam oauth|oauth2 info|verify [<AccessToken>]
|
||||||
|
|
||||||
@ -506,7 +507,6 @@ gam delete domainalias|aliasdomain <DomainAlias>
|
|||||||
gam info domainalias|aliasdomain <DomainAlias>
|
gam info domainalias|aliasdomain <DomainAlias>
|
||||||
gam print domainaliases|aliasdomains [todrive]
|
gam print domainaliases|aliasdomains [todrive]
|
||||||
|
|
||||||
|
|
||||||
gam info customer
|
gam info customer
|
||||||
gam update customer [adminsecondaryemail|alternateemail <EmailAddress>] [language <LanguageCode] [phone|phonenumber <String>]
|
gam update customer [adminsecondaryemail|alternateemail <EmailAddress>] [language <LanguageCode] [phone|phonenumber <String>]
|
||||||
[contact|contactname <String>] [name|organizationname <String>]
|
[contact|contactname <String>] [name|organizationname <String>]
|
||||||
|
@ -10094,7 +10094,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)
|
||||||
|
|
||||||
if not login_hint:
|
if not login_hint or login_hint.find(u'@') == -1:
|
||||||
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:
|
||||||
|
Reference in New Issue
Block a user