mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Connect without check
This commit is contained in:
parent
dd945b86a5
commit
c21feb1de0
1 changed files with 1 additions and 5 deletions
|
@ -22,11 +22,7 @@ if __name__ == '__main__':
|
|||
email = argv.email
|
||||
password = argv.password
|
||||
|
||||
mongo = connect(mongodb_uri=argv.mongo_uri)
|
||||
if not mongo:
|
||||
print('Failed to connect!')
|
||||
sys.exit(1)
|
||||
|
||||
connect(mongodb_uri=argv.mongo_uri)
|
||||
new_user = ProviderAdminUser.make_provider(email=email.lower(), password=password, country=argv.country,
|
||||
language=argv.language)
|
||||
new_user.status = ProviderAdminUser.Status.ACTIVE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue