Only check access tokens if they are likely to be tokens (#16164)
* Only check access tokens if they are likely to be tokens Gitea will currently check every if every password is an access token even though most passwords are not and cannot be access tokens. By creation access tokens are 40 byte hexadecimal strings therefore only these should be checked. Signed-off-by: Andrew Thornton <art27@cantab.net>tokarchuk/v1.17
parent
3d991319df
commit
b8e4ce754e
Loading…
Reference in new issue