This commit is contained in:
wangchuxiao
2022-06-09 17:19:39 +08:00
committed by Xinwei Xiong(cubxxw-openim)
parent 7d9494ebb2
commit 57d2be140a
7 changed files with 84 additions and 22 deletions
@@ -15,11 +15,12 @@ func GetRegister(account string) (*db.Register, error) {
account).Take(&r).Error
}
func SetPassword(account, password, ex string) error {
func SetPassword(account, password, ex, userID string) error {
r := db.Register{
Account: account,
Password: password,
Ex: ex,
UserID: userID,
}
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
if err != nil {