]> source.dussan.org Git - gitea.git/commitdiff
typo fix for comment
authorDustin Willis Webber <dustin.webber@gmail.com>
Thu, 16 Apr 2015 18:40:39 +0000 (14:40 -0400)
committerDustin Willis Webber <dustin.webber@gmail.com>
Thu, 16 Apr 2015 18:40:39 +0000 (14:40 -0400)
models/user.go

index 8651464e7bbcfe4f2cb7c88a532fae42252a0589..e0ba4be3c1819e8580e8cdb611bb4c4a875f2192 100644 (file)
@@ -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()