1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-05 01:45:22 +02:00
This commit is contained in:
Dustin Willis Webber 2015-04-16 14:36:32 -04:00
parent 639e34e362
commit f78046fc3b
2 changed files with 2 additions and 2 deletions

View file

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