0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00
forgejo/services/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
..
avatar.go Fix bug on avatar (#31008) 2024-05-19 13:57:52 +02:00
avatar_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
block.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
block_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
delete.go fix: extend forgejo_auth_token table 2024-11-15 10:59:36 +01:00
email.go fix: use ValidateEmail as binding across web forms 2024-08-28 22:25:17 -06:00
email_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
update.go [SECURITY] Notify users about account security changes 2024-07-23 18:31:47 +02:00
update_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
user.go Add warn log when deleting inactive users (#32318) 2024-10-27 11:27:40 +01:00
user_test.go Improve the maintainblity of the reserved username list (#32229) 2024-10-13 14:17:08 +03:00