Skip to content

Commit 57c4cef

Browse files
committed
deleteflag non pris en compte dans upsert, ajout mail dans le template de changement de mdp
1 parent 956b3f3 commit 57c4cef

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/management/identities/identities-upsert.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export class IdentitiesUpsertService extends AbstractIdentitiesService {
4747
throw new HttpException('Secondary identity', HttpStatus.SEE_OTHER);
4848
}
4949
}
50+
//controle si l'identité a été supprimée
51+
if (identity !== null && identity?.deletedFlag === true){
52+
throw new HttpException('Identity deleted', HttpStatus.SEE_OTHER);
53+
}
5054

5155
await this.checkInetOrgPersonJpegPhoto(data);
5256

src/management/passwd/passwd.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export class PasswdService extends AbstractService {
176176
displayName: identity.inetOrgPerson.displayName,
177177
uid: initDto.uid,
178178
url: this.config.get('frontPwd.url') + '/initaccount/' + token,
179+
mail: identity.inetOrgPerson.mail
179180
},
180181
})
181182
.then(() => {

0 commit comments

Comments
 (0)