mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-10 12:05:58 +08:00
demo modify
This commit is contained in:
@@ -293,10 +293,6 @@ type config struct {
|
||||
SmtpAddr string `yaml:"smtpAddr"`
|
||||
SmtpPort int `yaml:"smtpPort"`
|
||||
}
|
||||
ErrMsg struct {
|
||||
HasRegistered string `yaml:"hasRegistered"`
|
||||
MailSendCodeErr string `yaml:"mailSendCodeErr"`
|
||||
}
|
||||
}
|
||||
}
|
||||
type PConversation struct {
|
||||
|
||||
@@ -14,10 +14,11 @@ func GetRegister(account string) (*db.Register, error) {
|
||||
return &r, dbConn.Table("registers").Where("account = ?",
|
||||
account).Take(&r).Error
|
||||
}
|
||||
func SetPassword(account, password string) error {
|
||||
func SetPassword(account, password, ex string) error {
|
||||
r := db.Register{
|
||||
Account: account,
|
||||
Password: password,
|
||||
Ex: ex,
|
||||
}
|
||||
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user