1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-12 11:38:00 -05:00
forgejo/routers/web/user
Gusted 1ce33aa38d
fix: extend forgejo_auth_token table
- Add a `purpose` column, this allows the `forgejo_auth_token` table to
be used by other parts of Forgejo, while still enjoying the
no-compromise architecture.
- Remove the 'roll your own crypto' time limited code functions and
migrate them to the `forgejo_auth_token` table. This migration ensures
generated codes can only be used for their purpose and ensure they are
invalidated after their usage by deleting it from the database, this
also should help making auditing of the security code easier, as we're
no longer trying to stuff a lot of data into a HMAC construction.
-Helper functions are rewritten to ensure a safe-by-design approach to
these tokens.
- Add the `forgejo_auth_token` to dbconsistency doctor and add it to the
`deleteUser` function.
- TODO: Add cron job to delete expired authorization tokens.
- Unit and integration tests added.
2024-11-15 10:59:36 +01:00
..
setting fix: extend forgejo_auth_token table 2024-11-15 10:59:36 +01:00
avatar.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
code.go code-search: make linters happy again 2024-09-16 16:20:55 +02:00
home.go feat(ui): set your_repositories as the default filter for org dashboards (#5593) 2024-10-17 13:24:41 +00:00
home_test.go feat: set created_by as the default filter for /issues and /pulls (#5286) 2024-09-13 12:55:39 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
notification.go Add missing repository type filter parameters to pager (#31832) 2024-08-19 09:26:34 +02:00
package.go style: change one argument switch to if 2024-08-18 16:20:26 +02:00
profile.go nix wording nit in todo code comment 2024-09-09 20:54:39 +02:00
search.go Add DISABLE_ORGANIZATIONS_PAGE and DISABLE_CODE_PAGE settings for explore pages and fix an issue related to user search (#32288) 2024-10-27 11:27:40 +01:00
stop_watch.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
task.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00