mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 12:16:17 +01:00
typo fix for comment
This commit is contained in:
parent
f78046fc3b
commit
e57594dc31
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue