bug fix remote access

This commit is contained in:
Usman Nasir
2021-04-12 20:43:35 +05:00
parent 5555b41cb0
commit 37e79c60cf

View File

@@ -257,8 +257,7 @@ class DatabaseManager:
else:
return ACLManager.loadErrorJson()
# mysqlUtilities.allowRemoteAccess(db[0].dbName, userName, remoteIP)
mysqlUtilities.allowRemoteAccess(db[0].dbName, userName, remoteIP)
mysqlUtilities.createDatabase(db[0].dbName, userName, 'cyberpanel', 0, remoteIP)
dbUserInMysql = DBUsers.objects.get(user=userName, host='localhost')
mysqlUtilities.changePassword(userName, dbUserInMysql.password, 1, remoteIP)