wangfei 6 år sedan
förälder
incheckning
08fa0f43de
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1
    2
      service/user/user.go

+ 1
- 2
service/user/user.go Visa fil

@@ -1,7 +1,6 @@
1 1
 package user
2 2
 
3 3
 import (
4
-	"cdkj-check/helper"
5 4
 	"net/http"
6 5
 	"strings"
7 6
 	"wechat-conf/models/model"
@@ -60,7 +59,7 @@ func (s *UserServ) UpdatePassword(userID, newPass string) error {
60 59
 }
61 60
 
62 61
 // ValidatePassword 验证密码是否正确
63
-func (m *UserServ) ValidatePassword(user *model.SysUser, password string) bool {
62
+func (s *UserServ) ValidatePassword(user *model.SysUser, password string) bool {
64 63
 	return user.Pwd == encrypt.Md5(password, user.UserId)
65 64
 }
66 65