Explorar o código

typo fix for comment

Dustin Willis Webber %!s(int64=10) %!d(string=hai) anos
pai
achega
e57594dc31
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/user.go

+ 1 - 1
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()