From: Dustin Willis Webber Date: Thu, 16 Apr 2015 18:40:39 +0000 (-0400) Subject: typo fix for comment X-Git-Tag: v0.9.99~1397^2~3^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e57594dc31fc42c1bb7ba0df77d1d4f249f8f079;p=gitea.git typo fix for comment --- diff --git a/models/user.go b/models/user.go index 8651464e7b..e0ba4be3c1 100644 --- a/models/user.go +++ b/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()