Skip to content

Commit

Permalink
feat(api):reword new agency email and add headquarters name
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Jul 4, 2024
1 parent 28c3eb9 commit 605b253
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions infra/keycloak/themes/francevae/email/html/executeActions.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@
<#-- user_profile_type = organism -->
<#elseif (user.attributes.user_profile_type)?has_content && user.attributes.user_profile_type == "organism">
<#if section="intro">
<p>Votre établissement mère vous invite à rejoindre l'espace professionnel France VAE en tant que
responsable d'agence. </p>
<p>L'agence administratrice
<#if (user.attributes.nom_maison_mere_aap)?has_content>
${user.attributes.nom_maison_mere_aap}
</#if>
vous invite à rejoindre l'espace professionnel France VAE en tant que responsable d'agence. </p>

<br />

Expand Down
2 changes: 2 additions & 0 deletions packages/reva-api/modules/account/features/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const createAccount = async (account: {
username: string;
firstname?: string;
lastname?: string;
maisonMereAAPRaisonSociale?: string;
group:
| "admin"
| "organism"
Expand Down Expand Up @@ -78,6 +79,7 @@ export const createAccount = async (account: {

payload.attributes = {
user_profile_type: userProfileType,
nom_maison_mere_aap: account.maisonMereAAPRaisonSociale,
};

const { id } = await keycloakAdmin.users.create(payload);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export const createAgency = async ({
lastname,
username: email,
group: "organism",
maisonMereAAPRaisonSociale: raisonSociale,
})
).unsafeCoerce();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export const createOrganismWithMaisonMereAAP = async ({
lastname,
username: email,
group: "organism",
maisonMereAAPRaisonSociale: raisonSociale,
})
).unsafeCoerce();

Expand Down

0 comments on commit 605b253

Please sign in to comment.