1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-22 07:34:26 +00:00
zeripath b8e4ce754e
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>
2021-06-16 00:29:25 +02:00
..
2021-05-16 19:58:26 +08:00
2020-06-15 16:46:01 -04:00
2021-04-05 08:41:22 +01:00
2020-04-05 07:20:50 +01:00
2021-06-07 07:27:09 +02:00
2021-04-19 18:25:08 -04:00
2021-06-07 07:27:09 +02:00
2021-05-01 22:51:03 -04:00
2020-04-05 07:20:50 +01:00
2020-08-16 23:07:38 -04:00
2020-03-02 00:05:44 +02:00
2020-04-05 07:20:50 +01:00
2021-06-07 07:27:09 +02:00