mirror of
https://gitee.com/gitea/gitea
synced 2025-11-18 15:30:24 +08:00
typo fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user