Set admin password when TRYTONPASSFILE environment variable is set
This behaviour was wrongly removed in changeset 5ade83a210f0 issue7221 review37091002
This commit is contained in:
+2
-1
@@ -105,8 +105,9 @@ def run(options):
|
||||
if not password:
|
||||
sys.stderr.write('"admin" password is required.\n')
|
||||
continue
|
||||
admin.password = password
|
||||
break
|
||||
if not options.reset_password:
|
||||
admin.password = password
|
||||
admin.save()
|
||||
if options.reset_password:
|
||||
User.reset_password([admin])
|
||||
|
||||
Reference in New Issue
Block a user