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

index 916e27310cc5bca9415c2ff373d5059cdaffa85c..73d112568bba417c722fd0afeb1fcff6412e63a3 100644 (file)
@@ -169,7 +169,7 @@ func UserSignIn(uname, passwd string) (*User, error) {
        // For plain login, user must exist to reach this line.
        // Now verify password.
        if u.LoginType == PLAIN {
-               if !u.ValidtePassword(passwd) {
+               if !u.ValidatePassword(passwd) {
                        return nil, ErrUserNotExist
                }
                return u, nil
index dcfd0dc5ec8ace38592cd0189de84e956b935ddc..8651464e7bbcfe4f2cb7c88a532fae42252a0589 100644 (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