GeezerVison is showing github.com — Accounts created in the Admin panel send no invitation mail, and the initial password is not single-use · Issue #1058 · OpenResilienceInitiative/ORISO-Frontend
Accounts created in the Admin panel send no invitation mail, and the initial password is not single-use #1058Closed 1 / 11 of 1 issue completedClosed Bug 1 / 11 of 1 issue completed Description
Status 2026-09-26 · Partial repair in review — direct-account mail and the final Admin flow still open
The direct admin/consultant path still sends no invitation mail. Counsellor accounts already carried an application-level password-change flag on dev; UserService PR #1303 adds Keycloak temporary passwords for directly created Träger admins, agency admins and counsellors, while keeping invite-accepted passwords permanent. Its 5,083 local tests passed and the later five stale integration assertions were fixed. PR #1303 is now a draft: Frontend direct username/password token acquisition cannot complete Keycloak UPDATE_PASSWORD before login, so the proposed temporary-password flow may block first sign-in. Current CI is green, but the design, review and Dev first-login proof are open. The choice between replacing direct Admin creation with an invitation link and retaining it with a mail remains pending.
Readiness = one point each for: plain-language goal, testable acceptance criteria, dependencies resolved, code location correct on dev, verification path defined. Epic: #828.
An account created in the Admin panel notifies nobody. The person is created, given a password, and never told — not that the account exists, not what it is for, not where to sign in.
Found on Pre-Dev: a Träger admin invited another Träger admin, the account appeared in the list, and no mail was sent.
Why: there are two onboarding paths and only one of them mails
| Path |
Entry point |
Sends a mail? |
| Invite |
AccountInviteController → AccountInviteService.sendInvite → InviteMailDispatchService → SMTP |
yes — with a template, a delivery record and an EMAIL_SENT status |
| Admin create |
AdminUserFacade.createNewTenantAdmin / createNewAgencyAdmin |
no |
The invite machinery is complete and works. The Admin panel simply does not use it: grep -rl 'EmailNotification\|MailService\|sendInvite\|OrisoEmail' src/main/java/…/api/admin/ returns nothing. The whole admin package sends no mail of any kind.
So this is not a broken mail — it is a path that never had one.
Current delivery status — 1 October 2026
Working status: In progress; planned for v2.0.10.
What is missing: Directly created accounts still need the compatible first-login package deployed and tested on Dev. The recipient must receive a safe setup invitation, choose a personal password and pass the existing security checks. Source is published for review. The Admin bulk and lint corrections now pass their local gates; new Admin CI is running. Backend and canonical-template CI failures still need repair.
Agreed repair: Keep direct Admin creation. Send an expiring setup link bound to the account that was just created. The recipient chooses a permanent password through the existing role-specific onboarding page. No temporary password is sent by email, and required two-factor authentication remains.
The earlier invitation-versus-direct-creation question is not a blocker. The original request already authorises this compatible repair. The dated proposal and source audit below remain history.
| Work package |
Current state |
| UserService #1302 / PR #1303 |
Published, ready for review against dev. Current backend CI has failed test/schema gates; the backend owner is diagnosing them. This is not deployed or accepted. |
| Admin PR #1115 |
Published password-only setup for all three roles plus individual and bulk setup reminders without ordinary templates. Local related unit, real-browser, types, exact CI lint and build gates pass. The new-head CI is running; human review and Dev acceptance remain open. |
| Frontend PR #1602 |
Published canonical setup mail in all seven variants. The existing mail families are retained. Local gates pass; the current enquiry-panel browser CI job failed and is being diagnosed. Human review and Dev receipt remain open. |
Fixed in published source: Setup completion returns to ordinary login and keeps required security checks. Old requests cannot complete or display an error under a different account link. Individual and setup-only bulk resend use the existing scoped Links action without ordinary templates, including never-sent setup rows. Mixed, ordinary and unknown-purpose selections retain their template guard and current provisioning flow; failed rows remain selected after refresh.
Next action: Repair the measured CI failures, review the compatible backend/Admin/template package, obtain named merge approval and deploy compatible images. Then run the three-role Dev checklist below.
Acceptance still needed: On Dev, create each supported role; receive its setup invitation; choose a personal password; confirm that the old password fails and required two-factor authentication still gates access. Scoped resend must invalidate the older link. Revoke must stop the link without deleting the existing account. Expired, revoked, replayed and failed-delivery links must show safe outcomes.
For developers — exact published source, local evidence and remaining gates (skip for the progress overview):
Published reviewable heads, all OPEN/non-draft against dev at this readback:
Admin1115 91e70d7fac68e735d7505e7a751fa6c8dec4b088 / treed17250550577ce6d06c98f4153cce6b0e4fa3fb6
Frontend1602 7c03a6adfdf54a5cd233950836148caeda76fd05 / tree2f13f67c
UserService1303 88ba893d2e76ed8ac6bb333b9d1853a11e285a53
Public setup contract: server-derived EXISTING_ACCOUNT_SETUP; absent purpose means INVITE.
POST /users/account-invites/{token}/setup (existing /service alias) accepts only {password}.
Success {phase: COMPLETED}; normal login/native 2FA, no session or provisioning bypass.
HTTP410 SETUP_IN_PROGRESS / SETUP_OPERATOR_REVIEW_REQUIRED display safe terminal states,
without automatically reposting a password. Existing expiry/revocation/replay outcomes remain.
Bound user/role/tenant/units/assignments are read server-side, never chosen by this request.
TENANT_ADMIN uses the existing Admin tenant-onboarding page.
COUNSELLOR and AGENCY_ADMIN use the existing Admin counsellor-onboarding page.
Ordinary invite/create/register/TOTP paths and password validators remain unchanged.
Protected setup recovery: existing /useradmin/account-invites/{inviteId}/resend, JSON {}.
The server performs scoped row lookup and purpose-safe delegation to canonical setup delivery.
It derives identity/role/URL; no raw setup token or accept URL is returned to the operator.
Existing success handler reloads the scoped list. Existing revoke stays unchanged.
Ordinary INVITE still requires the selected/active ordinary template and retains its payload.
Admin provenance: immutable publicUI6349 retains original3-role baselineRED and feature4-lifecycleRED;
233 focused/14reports +3683 full/428reports +3 real Chromium stories belong to6349.
Normal follow-up d3e9 changes only protected DTO/resend API, Links handler and existing stories.
Genuine real Links/MSW baseline at6349: setup/no-template fails missingPOST; ordinary refusal passes.
Historical d3e9:695 related units/31reports,8 real Chromium stories/2files,0fail/pending;
Storybook types/production type-build-postbuild/diff exits0. Historical bare-eslint script
did not match the all-directory zero-warning CI command; that verification mistake is corrected below.
All final candidate source hashes equal gate and post-commit hashes.
No final all-repository full-unit suite is claimed for d3e9.
Normal follow-up91e70d7:four equivalent text/mock lint fixes plus five bounded bulk paths.
Only exact EXISTING_ACCOUNT_SETUP bypasses the template requirement; mixed/unknown remains ordinary.
Setup DRAFT and EMAIL_SENT both call protected resend with JSON{}; ordinary DRAFT/send and sent/resend stay unchanged.
Genuine pre-fix6-case unitRED:3fail/3guard pass. Actual2-case ChromiumRED:setup fails/mixed guard passes.
701related units/31files pass with unchanged final production/unit hashes; later delta only Storybook date assertions.
Final13real Chromium/3files pass at exact publishedd172tree. Exact npx eslint . --max-warnings=0,
full formatting/style, Storybook types, production build/postbuild/diff all process exits0.
Initial browser count and test-loop lint failures retained as history; no final all-repository unit rerun claimed.
Root independent source/tree/hash/log/report review PASS; this is not human or CI approval.
Proof admin1115-bulk-final-tested-tree-and-gates.json, SHA25678c7936260e4a292e63f5138fc685d78fa3c408db435e3736cc6d97a38df71a3.
Existing screenshots stay pinned to locald3e9/7c03; no new bulk screenshot claimed.
Canonical source7c03: konto-einrichten security occasion, seven variants,
14plain HTML/text resources, configured product/organisation values, no temporary password.
All32 earlier catalogue entries retained;1370 previous dist files byte-identical,
only the README/catalogue indices changed.33 total catalogue entries.
Full10133/571 belongs to pre-hook source; hook changed only derived JSON/README formatting.
Final exact7c03 focused5280/8 plus sync/format/diff pass;14plain bytes unchanged.
Current CI is separate from local proof:
Admin1115 current91e70d7 checks are running; historicald3e9 build failure is source-corrected with local CI-equivalent proof.
Human reviewers requested:shazia-k,Shirloin,shanzaeimran; no human approval or bot-thread resolution claimed.
Frontend1602 Enquiry team panel browser regression failed; other validation checks passed.
UserService1303 has failed full-suite/integration/schema jobs; contract checks passed.
No green-CI/human-approval/merge/deployment/Dev-receipt claim follows from local tests.
Human review and explicit per-PR merge permission remain required.
No account, deployment, SMTP send or received-mail acceptance was performed here.
Decision 2026-10-10 — one setup link, own password, then second factor, in the app the person will use
What happened (Dev, v2.0.11, from Frank's walk-through): A counsellor is created, gets the mail, and lands in the Admin panel. There they choose a password and see "Passwort gespeichert — Zum Login". They then sign in to the counsellor app, which asks for a "previous password" plus a new password a second time, and only then the second factor. Two password screens in two different apps, and the Admin panel stop is the wrong place for a counsellor. The flow works, but it is confusing. (Agent has not yet re-measured it on Dev; the screenshots are Frank's.)
What we want
- Counsellors (and agency admins who counsel): the mail link opens the counsellor app. The person chooses their own password (typed twice), then sets up the second factor straight away, then lands in the app. No stop in the Admin panel.
- Träger admins and agency admins without counselling: the link may stay in the Admin panel, but with the same order — own password, then second factor — and a final screen that leads to where they actually work.
- The one-time password must lead straight to the moment where a new password is chosen. Nobody should have to type the one-time password again; typing the new password twice is fine.
Agreed 2026-10-15 (Frank): after the password is saved, the app signs the person in with it automatically, so the existing two-step gate ("Eigenes Passwort → Zweiter Faktor") only has the second factor left — provided it adds no security weakness. A short spike confirms this before it is promised.
This reverses the 2026-08-12 product decision that counsellor onboarding runs in the Admin panel (see source pointers). The "Agreed repair" in the status block above (Admin PR #1115 password-only page, ends at "Zum Login") is superseded for counsellors.
For developers — what was measured in source (skip for the progress overview):
URL routing today: InviteAcceptUrlBuilder.buildAcceptUrl (UserService)
COUNSELLOR, AGENCY_ADMIN -> {admin}/admin/counsellor-onboarding/{token} <- to move to the app for counsellors
TENANT_ADMIN -> {admin}/admin/tenant-onboarding/{token}
Admin end screen: translation.json accountSetup.completedTitle "Passwort gespeichert", toLogin; no 2FA step
(the tenant-admin wizard does have TwoFactorStep; the existing-account setup does not)
App gate already exists: src/components/twoFactorAuth/AccountSetupGate.tsx + accountSetupStep.ts
order: passwordChangeRequired first, then 2FA required-and-inactive; progress "Eigenes Passwort -> Zweiter Faktor"
its password step calls changePassword with the OLD password (UserAccountControllerDelegate.changePassword
-> identityManager.validatePasswordIgnoring2fa) -> this is the "Bisheriges Passwort" field
ExistingAccountSetupService.confirm(): clears Consultant.passwordChangeRequired only for role COUNSELLOR
(line ~146 on origin/dev). Hypothesis, NOT verified on Dev: other roles keep the flag and meet the gate again.
Open design question already on this issue: UserService#1303 (Keycloak temporary password) makes the direct
username/password token request fail before UPDATE_PASSWORD completes. The login screen then shows
"Your account is not fully set up yet ..." (Frank's third screenshot, user bart-simpson-okt-9-b).
Needs a decision: what the one-time password does when typed at login before the link was used.
Next steps (checklist)
- Re-measure the current flow on Dev with a fresh counsellor (test accounts via test-access, mail via @oriso.org) and record where each screen appears
- Spike: new public app route for the setup token, password typed twice, auto sign-in, hand over to the gate at the second-factor step
- Mail link for COUNSELLOR / AGENCY_ADMIN-who-counsels points to the app; admin-only roles keep the Admin link, with 2FA added to that page
- No "previous password" field when the person arrives through the setup link
- Reconcile with Admin Request-stage search indicator reads as a rectangle and clips its own beam animation #1115, Frontend feat(email): Add existing-account password setup templates #1602, UserService feat(supervision): parallel supervision panel next to the client chat (components + wiring) #1303 (what stays, what is superseded)
- Reviewer test: create each role on Dev, follow the mail, finish in one pass, old password fails afterwards, 2FA required
Related: ORISO-Admin#1144 (counsellor cannot sign in with the one-time password — likely the same root; not yet confirmed), ORISO-Admin#940.
Spec 2026-10-15 — setup link per role: where it lands, one password, second factor, guarded by tests
State update: Admin #1115, Frontend #1602 and UserService #1303 are merged (1–2 Oct) and are what Dev runs today (QA internal Dev). The flow Frank walked through on Dev is therefore the merged flow, and this spec is the follow-up that fixes it.
Problem Statement
A person whose account was created for them gets a setup mail. Today a counsellor is sent to the Admin panel to choose a password, is then sent on to the counsellor app, is asked for a "previous password" and a new password again, and only then sets up the second factor. It works, but it is confusing and the Admin panel is the wrong place for someone who will work in the app. There is also no setup flow at all for further platform admins, and nothing stops the next new account type from being added without a decided destination.
Solution
Every account type has one decided destination and one straight path: mail link → choose own password (typed twice) → second factor → arrive where the person works. Nobody types a password they were never told, and nobody sees the same step twice. A guard test fails the build when an account type exists without a declared destination.
User Stories
- As a counsellor, I want the mail link to open the counsellor app, so that I set up my account where I will work.
- As a counsellor, I want to choose my own password once (typed twice), so that I never type a password I was not given.
- As a counsellor, I want to be signed in automatically after choosing my password, so that I do not have to type it a third time.
- As a counsellor, I want the second-factor setup to follow immediately, so that I am not sent away and back.
- As a counsellor, I want no "previous password" field when I arrive through the setup link, so that the screen asks only what I know.
- As a person invited through an agency link (Beratungsstellen-Link), I want to be created as a counsellor of that agency and follow the counsellor path, so that I land in the app.
- As an agency admin who also counsels, I want the same app path as a counsellor, so that I do not meet two flows.
- As an agency admin who does not counsel, I want to set my password in the Admin panel and set up the second factor there, so that my account is secured before first use.
- As a Träger admin, I want the same Admin-panel path (password, then second factor), so that I never reach the dashboard unsecured.
- As a platform admin invited by another platform admin, I want my own setup link with the same path, so that adding platform admins is as safe as adding any other admin.
- As an administrator creating an account, I want to know where the invited person will land, so that I can tell them what to expect.
- As an administrator, I want the old password to stop working after the person set their own, so that a secret I typed is not a standing credential.
- As a recipient with an expired, used or revoked link, I want a clear message and a way to ask for a new one, so that I am not stuck.
- As a recipient who signs in with the password the administrator typed before using the link, I want a message that points me to the link in my mail, so that I know what to do.
- As a recipient on a phone, I want every step to work at narrow widths, so that I can finish on the device I read the mail on.
- As a developer adding a new account type, I want a failing test that names the missing destination and steps, so that no new flow ships without them.
- As a security reviewer, I want the second factor to stay mandatory for all admin roles and counsellors on this path, so that automatic sign-in is not a bypass.
- As a reviewer, I want one browser test per role on Dev, so that "it works" is proven, not claimed.
Implementation Decisions
- Role → destination table (decided by Frank, 2026-10-15): counsellor and agency-link invitees → counsellor app; agency admin who also counsels → counsellor app; agency admin without counselling, Träger admin, platform admin → Admin panel. Advice seekers keep the existing app accept route.
- "Also counsels" is derived on the server from the account, never chosen by the browser.
- The setup mail carries only the link, no password. The "previous password" prompt is not shown on this path; it remains for ordinary self-service password changes.
- Counsellor app: a new public setup page for the setup token: password twice, then automatic sign-in with that password, then the existing account-setup gate at its second-factor step. The password-set call is the existing public setup endpoint; the backend must clear the "password change required" requirement for counsellors of every tenant, not only the main tenant (see Measurement 2026-10-15; to be proven by the tenant-1 / other-tenant test).
- Admin panel: the existing-account setup page gains the second-factor step that the tenant-admin wizard already has; the final screen leads to the Admin login only after the factor is active.
- Platform admins: the invitation target role exists but has no setup flow; add issuing, link routing, setup completion and the Admin-panel path for it.
- Guard: the destination for every account-invite target role lives in one declared table. A unit test iterates over all enum values and fails when a value has no destination, no required-steps declaration, or no browser test entry.
- Automatic sign-in is acceptable if it adds no weaker path: the password never leaves the page except to the normal sign-in, second factor stays required, no token is stored beyond a normal session. A short spike confirms this against Keycloak before the slice is promised.
- The earlier first-login mechanism from feat(supervision): parallel supervision panel next to the client chat (components + wiring) #1303 (temporary Keycloak password) must still allow the sign-in the spike needs; this is the open risk already noted on this issue.
- The 2026-08-12 decision to run counsellor onboarding in the Admin panel is reversed for counsellors only.
Testing Decisions
- A good test drives the product the way a person does and asserts what they see and can do, not internal calls.
- Seam (confirmed by Frank 2026-10-15): one real-browser journey per role in the existing ORISO-E2E counsellor-onboarding suite against Dev. Each journey: create the account, read the mail from an
@oriso.org mailbox, open the link, set the password twice, set up the second factor, arrive in the right app; afterwards the typed password fails and no "previous password" field appeared.
- Second, deliberately small seam: the role-completeness guard (unit level, next to the existing invite-URL tests), because it must fail at build time the day someone adds a role.
- Prior art: the existing counsellor-onboarding wizard journey, the invite-URL builder tests, the account-setup gate component tests.
- Accounts come from the Test Access Hub; never read passwords from it.
Out of Scope
Further Notes
- First slice (read-only part done, see Measurement 2026-10-15): the remaining proof is one fresh counsellor in tenant 1 and one in another tenant, walked through by a person or the E2E suite on Dev.
- Frank 2026-10-15: one login can hold the counsellor and the admin role, be admin of several agencies, counsel in several and take over cases across them, each with its own encryption silo. The setup link belongs to the account, not to one agency; the destination rule (anyone who counsels → counsellor app) must not depend on a single agency.
- Related: ORISO-Admin#1144 (counsellor cannot sign in with the one-time password), Admin#940.
Measurement 2026-10-15 — current merged flow on Dev (read-only; no account was created)
What was measured: Dev runs Frontend v2.0.12 (bc85b42) and Admin v2.0.12 (599b9ba), both equal to dev. Setup mails already on Dev were read, setup links were opened without submitting, and the app was entered with the Test Access Hub logins. A full "create → set password → sign in" run was not done: agents may not create accounts or type passwords on a non-local host, so that run needs a person or the E2E suite.
| Role |
Link goes to |
Second factor offered |
"Bisheriges Passwort" step |
Evidence |
| Counsellor |
Admin panel /admin/counsellor-onboarding/… (live mails) |
only later, in the app gate (live) |
not shown for two tenant-1 counsellors; expected for other tenants (see below) |
live screens, two counsellors |
| Agency admin (no counselling) |
same Admin page (source; no readable mailbox) |
not on the setup page |
not applicable |
source |
| Träger admin |
Admin panel /admin/tenant-onboarding/… (live mail) |
none in setup mode (the 2FA step only runs for invites) |
not applicable |
live screen + source |
| Platform admin |
no invite exists (Links composer has no such option). "Neuen Admin anlegen" creates it as a Träger admin with tenant 0 and issues the Träger-admin setup link |
none |
not applicable |
live form + source |
Login with the administrator-typed password before using the link: for counsellors, measured twice live — the sign-in is refused with "Your account is not fully set up yet. Please use the link in your invitation email, or reset your password via Forgot password?" (so this is the intended message, not a fault). Not measured for admin roles.
Hypotheses
- Rejected: "admins keep the password-change flag after setup." Agency admins and Träger admins never carry that flag; it exists only on counsellor records.
- Cause of the double password prompt — reproduced locally 2026-10-15 (real Hibernate tenant filter, local branch
fix/1058-setup-clears-flag-all-tenants in UserService, not pushed; test red without the fix: counsellor of tenant 26 keeps passwordChangeRequired=true while the invite flips to ACCEPTED, tenant-1 control passes; green with the fix). Still not proven on Dev that the tenant-26 account is this case. Counsellors already affected keep the flag and need a separate data repair. Mechanism (source reading + partial live fit): when the setup is confirmed, the check switches to the counsellor's tenant and switches back; the step that clears the flag then runs in the main tenant (tenant 1 on Dev). The counsellor row is tenant-filtered, so a counsellor of any other tenant is not found and the flag silently stays set. Live fit: counsellors in tenant 1 show the flag cleared; the likely walk-through account is in tenant 26 and shows setup accepted with 2FA pending. The existing unit test mocks the counsellor lookup and never checks the flag, so nothing catches this. Possible own error in the measurement: the cleared flags of the tenant-1 accounts may come from the test-mail provisioner, not from the setup. Deciding test: one fresh counsellor in tenant 1 and one in another tenant, same steps — expect the gate at step 2 for the first and at step 1 for the second.
Dev data check (read-only, snapshot 2026-10-15 16:46 UTC): all 9 accepted setups in tenant 1 are clean. Outside tenant 1: 1 counsellor still affected (tenant 26, flag still set) and 4 hit by the bug who already repaired themselves through the extra in-app password change (tenants 2, 10, 10, 40; inferred from credential timestamps, not from logs). No accepted setup in tenant 1 has the flag set. The fix is UserService #1410; the one open account needs a one-row repair after approval, or can simply finish the in-app step once.
Side findings
- Password hint differs: 8 characters on the counsellor page, 9 on the Träger-admin page.
- The platform-admin create form says "leave empty … reset by e-mail", which contradicts the setup mail the backend sends.
- The invite list returns no raw token or accept link for setup rows (good).
For developers — what blocks reusing the E2E journey (skip for the progress overview):
ORISO-E2E/tests/counsellor-onboarding-wizard.spec.ts tests the INVITE path (6-step wizard), not
direct create + setup mail + password-only page -> each role needs a new journey.
Stale: COUNSELLOR_WIZARD_997 gate and test.skip(project !== 'predev'); ADMIN_BASE_URL default
admin.oriso-dev.site (dead host; use adminBaseUrl(projectName) -> https://dev.oriso.org);
Pre-Dev fixtures in support/testAccess.ts (oriso/pre-dev/*, agent-mac-mini-oriso identity),
AGENCY_ID 275, recipient @dreambau.de -> move to oriso/dev, a Dev agency per tenant, @oriso.org plus-address.
Missing: JMAP mail reader, role->destination table, app assertions (no previous-password field,
gate opens at 2FA, old password fails), Admin-side 2FA step in setup mode (does not exist yet),
and one counsellor outside tenant 1 to catch the tenant hypothesis.
The password is the second half of the problem
In the admin path an administrator sets a password and has to pass it to the person out of band — by chat, or by phone, or by a second mail somebody writes by hand. Nothing then forces a change on first sign-in, so that password stays in whatever channel it travelled through.
A password an administrator knows should be single-use. The account should require the recipient to set their own before anything else, and the platform should be able to state that it did.
Current invitation architecture — 2026-09-26
On merged dev, the existing link provisions counsellors but does not yet invite additional admins into existing units. The open Admin #1026 stack already adds both missing paths: UserService #1214 joins an existing Träger, #1215 provisions agency admins, and Admin #1036 sends role-aware invites. Those PRs target dev but remain unmerged. The remaining #1058 seam is the Admin Users/direct-create forms: they still POST a password and send no mail. Routing those actions into the #1026 invitation composer would let the recipient choose a password at acceptance; this is a proposed UX choice, not implemented. The direct-creation temporary-password draft #1303 remains blocked by the current username/password token login.
For developers — source pointers:
ORISO-Admin/src/AdminApp.tsx:109-124; src/pages/Links/AccountInvitesTab.tsx:793-796
ORISO-UserService/.../CounsellorInviteProvisioningService.java:39-85
ORISO-UserService/.../AccountInviteService.java:95-110
ORISO-UserService/.../TenantAdminOnboardingService.java:185-198,234-263
ORISO-UserService/.../AccountInviteController.java:183-199
ORISO-Admin/src/api/auth/getAccessToken.ts:13-17
What to build
- Admin-created accounts go through the invite flow, or trigger the same mail it sends. The design already exists:
Email/Pages/EinladungTraeger and Email/Pages/EinladungFachkraft, three tone variants, generated in every dialect (ORISO-Frontend#867).
- Every role, not just Träger admins. Agency admins and counsellors created this way have the same silence.
- The initial password is one-time. Set a required action on the account so the first sign-in must replace it. Keycloak has
UPDATE_PASSWORD as a required action; that is likely the whole mechanism.
- Say so in the mail. The invitation should state that the password is temporary and must be replaced — that is what makes the requirement legible instead of a surprise.
Worth deciding while building it
The invite mail is in the security class (ADR-019): no unsubscribe link, nobody may switch it off. That is already how the template is generated, so nothing to change — but it means this mail is not optional for any Träger, and that should be a conscious choice.
Also related: dreambau#49 recorded a missing COUNSELLOR_INVITE template. If the templates are seeded per environment, an environment without one gets a NotFoundException instead of a mail — worth checking on Pre-Dev while testing this.
Reviewer test plan
- Creating a Träger admin in the Admin panel sends the invitation mail
- Creating an agency admin does the same
- Creating a counsellor does the same
- The mail matches
Email/Pages/EinladungTraeger / EinladungFachkraft in Storybook
- The first sign-in with the initial password forces a new password before anything else
- The old password no longer works afterwards
- The mail says the password is temporary
- An invitation to an address that bounces leaves a visible failure rather than a silent one
- Verified against an
@oriso.org address, not only @dreambau.de
- Checked at 375px and at 320px (narrow phone)
Parent: ORISO-Frontend#828. Related: ORISO-Frontend#867 (the designs), ORISO-Frontend#1057 (shipping the design system), ORISO-Frontend#869 (MailService — note these invite mails go over direct SMTP rather than MailService, so the two are independent; linked because they are two of the three paths that reach a user).
Release and delivery state — correction on 1 October 2026
Actual unfinished implementation is assigned to v2.0.11. Working status: In progress. The prior review status is preserved where applicable. This does not reopen merged release work because of missing testing. Existing acceptance checklists and delivery history remain intact. Sub-issuesCollapse Sub-issuesSub-issues1 of 11 of 1 Issues completedLoading 1 sub-issues ActivityStorypapst commented on Aug 13, 2026 CollaboratorAuthor More actions Release classification: assigned to v2.0.4 because this issue was created after the v2.0.3 release wave completed on 2026-08-11.
Storypapst commented on Sep 14, 2026 CollaboratorAuthor More actions Verified 15 September 2026 — still open, on both branches.
git grep -l 'EmailNotification\|MailService\|sendInvite\|OrisoEmail\|InviteMailDispatch' across src/main/java/de/caritas/cob/userservice/api/admin/ returns nothing on origin/dev and nothing on origin/pre-dev. The admin package sends no mail of any kind; the stranded mail-v2 delivery does not change that.
The machinery it would need is complete and in use elsewhere: InviteMailDispatchService is the single choke point where the branded layout is applied, with a receipt-after-send contract. The gap is that AdminUserFacade.createNewTenantAdmin / createNewAgencyAdmin never call it. Storypapst commented on Oct 1, 2026 CollaboratorAuthor More actions Storypapst commented on Oct 1, 2026 CollaboratorAuthor More actions
Short thesis: Source for Accounts created in the Admin panel send no invitation mail, and the initial password is not single-use has reached the published-branch stage.
Problem: A linked source branch or merged source exists. This score does not mean human approval, Dev deployment, a received email, or completion.
Readiness: 10/20. This is the GitHub delivery ladder, not a development percentage.
Next step toward the next level: Run the documented automated review loop, resolve valid findings, and collect the next review evidence. Storypapst commented on Oct 2, 2026 CollaboratorAuthor More actions Moved to QA internal Dev (release v2.0.11). Delivered by merged PRs: Admin #1115, UserService #1303, Frontend #1602. Not yet verified on Dev: a mail received in a real mailbox and the behaviour on a deployed Dev system; the merged tests and review are the only evidence so far.
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|