forgejo/services/mailer
Gusted df5d656827 feat: consider WebAuthn & SSH for instance signing (#7693)
- Currently the options `pubkey` and `twofa` only consider TOTP and GPG keys respectively. Adjust the code to also consider WebAuthn credentials and SSH keys.
- While adding the new unified functions I noticed that certain places also benefited from using these unified functions and took the liberty (where it was either a trivial translation or it was covered under testing) to use the new unified functions.
- Resolves forgejo/forgejo#7658
- Adds unit and integration tests.

Documentation PR: https://codeberg.org/forgejo/docs/pulls/1166

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7693
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-04-29 10:34:07 +00:00
..
incoming chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
token chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail.go feat: consider WebAuthn & SSH for instance signing (#7693) 2025-04-29 10:34:07 +00:00
mail_actions.go send mail on failed or recovered workflow run (#7509) 2025-04-29 06:58:05 +00:00
mail_actions_now_done_test.go send mail on failed or recovered workflow run (#7509) 2025-04-29 06:58:05 +00:00
mail_admin_new_user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_admin_new_user_test.go send mail on failed or recovered workflow run (#7509) 2025-04-29 06:58:05 +00:00
mail_auth_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_comment.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_issue.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
mail_release.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_repo.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_team_invite.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
mailer.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mailer_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
main_test.go send mail on failed or recovered workflow run (#7509) 2025-04-29 06:58:05 +00:00
notify.go send mail on failed or recovered workflow run (#7509) 2025-04-29 06:58:05 +00:00