mirror of
https://github.com/go-gitea/gitea
synced 2025-07-26 20:28:40 +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)
|
token := hex.EncodeToString(buf)
|
||||||
hash := auth_model.HashToken(token, salt)
|
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