mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
bug fix: email password
This commit is contained in:
@@ -548,12 +548,12 @@ class MailServerManager:
|
||||
|
||||
CentOSPath = '/etc/redhat-release'
|
||||
if os.path.exists(CentOSPath):
|
||||
password = bcrypt.hashpw(str(password), bcrypt.gensalt())
|
||||
password = '{CRYPT}%s' % (password)
|
||||
password = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt())
|
||||
password = '{CRYPT}%s' % (password.decode())
|
||||
emailDB.password = password
|
||||
else:
|
||||
password = bcrypt.hashpw(str(password), bcrypt.gensalt())
|
||||
password = '{CRYPT}%s' % (password)
|
||||
password = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt())
|
||||
password = '{CRYPT}%s' % (password.decode())
|
||||
emailDB.password = password
|
||||
|
||||
emailDB.save()
|
||||
|
||||
Reference in New Issue
Block a user