feat: Support sha512 password encryption algorithm (#2657)

* add sha512 encryption support for password

* fead: add sha512 encryption support for password
This commit is contained in:
dacongda
2024-01-31 00:06:06 +08:00
committed by GitHub
parent ef373ca736
commit 523186f895
7 changed files with 57 additions and 5 deletions

View File

@ -54,7 +54,7 @@ type User struct {
Id string `xorm:"varchar(100) index" json:"id"`
ExternalId string `xorm:"varchar(100) index" json:"externalId"`
Type string `xorm:"varchar(100)" json:"type"`
Password string `xorm:"varchar(100)" json:"password"`
Password string `xorm:"varchar(150)" json:"password"`
PasswordSalt string `xorm:"varchar(100)" json:"passwordSalt"`
PasswordType string `xorm:"varchar(100)" json:"passwordType"`
DisplayName string `xorm:"varchar(100)" json:"displayName"`