Skip to content

Commit

Permalink
[FEAT]: Ajout des information pour EcoleDirect et Esup-Multi (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnivtwelve authored Dec 30, 2024
2 parents c9ef9a6 + 108b0ba commit 239f3c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/views/login/IdentityProvider/providers/Multi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ const Muli_Login: Screen<"Multi_Login"> = ({ route, navigation }) => {
isExternal: false,
linkedExternalLocalIDs: [],

identity: {
firstName: account.userData.firstname,
lastName: account.userData.name,
ine: account.userData.ine,
birthDate: account.userData.birthDate ? new Date(account.userData.birthDate) : undefined,
email: [account.userData.email],
},

name: account.userData.name + " " + account.userData.firstname,
studentName: {
last: account.userData.name,
Expand All @@ -45,7 +53,6 @@ const Muli_Login: Screen<"Multi_Login"> = ({ route, navigation }) => {
refreshAuthToken: account.userData.refreshAuthToken || "",
},
personalization: await defaultPersonalization(account),
identity: {}
};

createStoredAccount(local_account);
Expand Down
9 changes: 8 additions & 1 deletion src/views/login/ecoledirecte/EcoleDirecteCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ const EcoleDirecteCredentials: Screen<"EcoleDirecteCredentials"> = ({ navigation
isExternal: false,
linkedExternalLocalIDs: [],

identity: {
firstName: account.firstName,
lastName: account.lastName,
civility: account.gender,
phone: [account.phone],
email: [account.email],
},

name: `${account.lastName} ${account.firstName}`,
studentName: {
first: account.firstName,
Expand All @@ -83,7 +91,6 @@ const EcoleDirecteCredentials: Screen<"EcoleDirecteCredentials"> = ({ navigation
account
},
personalization: await defaultPersonalization(account),
identity: {}
};


Expand Down

0 comments on commit 239f3c8

Please sign in to comment.