mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
DB name/user length to 32
This commit is contained in:
@@ -255,8 +255,8 @@ password=%s
|
|||||||
def submitDBCreation(dbName, dbUsername, dbPassword, databaseWebsite):
|
def submitDBCreation(dbName, dbUsername, dbPassword, databaseWebsite):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if len(dbName) > 16 or len(dbUsername) > 16:
|
if len(dbName) > 32 or len(dbUsername) > 32:
|
||||||
raise BaseException("Length of Database name or Database user should be 16 at max.")
|
raise BaseException("Length of Database name or Database user should be 32 at max.")
|
||||||
|
|
||||||
website = Websites.objects.get(domain=databaseWebsite)
|
website = Websites.objects.get(domain=databaseWebsite)
|
||||||
|
|
||||||
@@ -763,4 +763,4 @@ password=%s
|
|||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
logging.CyberCPLogFileWriter.writeToFile(str(msg) + "[mysqlUtilities.fetchuser]")
|
logging.CyberCPLogFileWriter.writeToFile(str(msg) + "[mysqlUtilities.fetchuser]")
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user