mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
bug fix remote access
This commit is contained in:
@@ -257,8 +257,7 @@ class DatabaseManager:
|
|||||||
else:
|
else:
|
||||||
return ACLManager.loadErrorJson()
|
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)
|
mysqlUtilities.createDatabase(db[0].dbName, userName, 'cyberpanel', 0, remoteIP)
|
||||||
dbUserInMysql = DBUsers.objects.get(user=userName, host='localhost')
|
dbUserInMysql = DBUsers.objects.get(user=userName, host='localhost')
|
||||||
mysqlUtilities.changePassword(userName, dbUserInMysql.password, 1, remoteIP)
|
mysqlUtilities.changePassword(userName, dbUserInMysql.password, 1, remoteIP)
|
||||||
|
|||||||
Reference in New Issue
Block a user