Feature/v2.8.10 (#323)
v2.8.10 1、bug fix #317 #320 2、支持token方式验签,使用参考 PMail_Github/server/main_test.go:135 3、587端口 starttls 问题修复 4、imap 协议功能补全 Tnanks for @HanaKDev
This commit is contained in:
1 parent
9753b2e09f
commit
826ac26636
7 files changed
+124
-32
No files matched your search
@@ -30,7 +30,7 @@ func ModifyPassword(ctx *context.Context, w http.ResponseWriter, req *http.Reque
|
||||
if retData.Password != "" {
|
||||
encodePwd := password.Encode(retData.Password)
|
||||
|
||||
_, err := db.Instance.Exec(db.WithContext(ctx, "update user set password = ? where id =?"), encodePwd, ctx.UserID)
|
||||
_, err := db.Instance.Table("user").Where("id=?", ctx.UserID).Update(map[string]interface{}{"password": encodePwd})
|
||||
if err != nil {
|
||||
response.NewErrorResponse(response.ServerError, i18n.GetText(ctx.Lang, "unknowError"), "").FPrint(w)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user