feat(email): add migration variant of the execute-actions email #14

Sammanfogat
supernaut sammanfogade 2 incheckningar från feat/migration-email in i main 2026-10-10 19:30:05 +00:00
Ägare

What

Users with the attribute bitborg_migration = true get a dedicated execute-actions email. It says sign-in moved to Bitborg ID, the username, repositories and plan are unchanged, and the link sets a password plus a one-time code app, or a passkey, and saves recovery codes. Everyone else gets the current emails.

  • BitborgEmailTemplateProvider reads the attribute from the user and picks executeActionsMigrateSubject and executeActionsMigrate.ftl.
  • New html and text templates, and sv/en messages. The expiry line reuses executeActionsExpiry.
  • README updated. subjectKey unit test covers the attribute case.

Notes

  • The realm user profile must declare bitborg_migration, or Keycloak drops it.
  • The attribute should be removed once the email is sent, or later action emails stay in the migration wording.

Test

mvn -B verify in providers/email: 4 tests pass.

## What Users with the attribute `bitborg_migration` = `true` get a dedicated execute-actions email. It says sign-in moved to Bitborg ID, the username, repositories and plan are unchanged, and the link sets a password plus a one-time code app, or a passkey, and saves recovery codes. Everyone else gets the current emails. - `BitborgEmailTemplateProvider` reads the attribute from the user and picks `executeActionsMigrateSubject` and `executeActionsMigrate.ftl`. - New html and text templates, and sv/en messages. The expiry line reuses `executeActionsExpiry`. - README updated. `subjectKey` unit test covers the attribute case. ## Notes - The realm user profile must declare `bitborg_migration`, or Keycloak drops it. - The attribute should be removed once the email is sent, or later action emails stay in the migration wording. ## Test `mvn -B verify` in `providers/email`: 4 tests pass.
supernaut lade till 2 incheckningar 2026-10-10 19:27:16 +00:00
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-10 19:29:13 +00:00
supernaut sammanfogade incheckning b38789a52e till main 2026-10-10 19:30:05 +00:00
supernaut tog bort grenen feat/migration-email 2026-10-10 19:30:05 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-keycloak!14
Ingen beskrivning angiven.