summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorDustin Willis Webber <dustin.webber@gmail.com>2015-04-16 14:40:39 -0400
committerDustin Willis Webber <dustin.webber@gmail.com>2015-04-16 14:40:39 -0400
commite57594dc31fc42c1bb7ba0df77d1d4f249f8f079 (patch)
tree6e8122eb50cdb52bc6965489b8ab8bd0d1181df7 /models/user.go
parentf78046fc3be8db80f8ac44512237c92825540e5d (diff)
downloadgitea-e57594dc31fc42c1bb7ba0df77d1d4f249f8f079.tar.gz
gitea-e57594dc31fc42c1bb7ba0df77d1d4f249f8f079.zip
typo fix for comment
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
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()