mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 11:07:20 +00:00
fix #2020
This commit is contained in:
@ -54,7 +54,7 @@ func AutoSignIn(ctx *Context) (bool, error) {
|
||||
}
|
||||
|
||||
if val, _ := ctx.GetSuperSecureCookie(
|
||||
base.EncodeMd5(u.Rands+u.Passwd), setting.CookieRememberName); val != u.Name {
|
||||
base.EncodeMD5(u.Rands+u.Passwd), setting.CookieRememberName); val != u.Name {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user