mirror of
https://github.com/go-gitea/gitea
synced 2025-07-25 19:58:36 +00:00
fix: last eight token
This commit is contained in:
@@ -26,7 +26,7 @@ func generateSaltedToken() (string, string, string, string, error) {
|
||||
}
|
||||
token := hex.EncodeToString(buf)
|
||||
hash := auth_model.HashToken(token, salt)
|
||||
return token, salt, hash, token[:8], nil
|
||||
return token, salt, hash, token[len(token)-8:], nil
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user