浏览代码

typo fix for comment

tags/v0.9.99
Dustin Willis Webber 9 年前
父节点
当前提交
e57594dc31
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      models/user.go

+ 1
- 1
models/user.go 查看文件

@@ -145,7 +145,7 @@ func (u *User) EncodePasswd() {
u.Passwd = fmt.Sprintf("%x", newPasswd)
}

// ValidtePassword checks if given password matches the one belongs to the user.
// ValidatePassword checks if given password matches the one belongs to the user.
func (u *User) ValidatePassword(passwd string) bool {
newUser := &User{Passwd: passwd, Salt: u.Salt}
newUser.EncodePasswd()

正在加载...
取消
保存