mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-24 14:25:37 +02:00
fix: last eight token
This commit is contained in:
parent
4782792604
commit
255d778737
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user