wangfei 6 years ago
parent
commit
08fa0f43de
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      service/user/user.go

+ 1
- 2
service/user/user.go View File

1
 package user
1
 package user
2
 
2
 
3
 import (
3
 import (
4
-	"cdkj-check/helper"
5
 	"net/http"
4
 	"net/http"
6
 	"strings"
5
 	"strings"
7
 	"wechat-conf/models/model"
6
 	"wechat-conf/models/model"
60
 }
59
 }
61
 
60
 
62
 // ValidatePassword 验证密码是否正确
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
 	return user.Pwd == encrypt.Md5(password, user.UserId)
63
 	return user.Pwd == encrypt.Md5(password, user.UserId)
65
 }
64
 }
66
 
65