File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ( ) => {
You can’t perform that action at this time.
0 commit comments