mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-11 14:41:21 +00:00
feat(auth): make password encryption opt-in #6743
This commit is contained in:
@@ -318,9 +318,11 @@ func InitResources() error {
|
||||
common.FatalLog("failed to initialize authorization: " + err.Error())
|
||||
return err
|
||||
}
|
||||
if err = model.InitPasswordEncryption(); err != nil {
|
||||
common.FatalLog("failed to initialize password encryption: " + err.Error())
|
||||
return err
|
||||
if common.PasswordLoginEncryptionEnabled {
|
||||
if err = model.InitPasswordEncryption(); err != nil {
|
||||
common.FatalLog("failed to initialize password encryption: " + err.Error())
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
model.CheckSetup()
|
||||
|
||||
Reference in New Issue
Block a user