Skip to content

Commit e7f5ab8

Browse files
committed
pb status + reformatage eslint
1 parent 91ac4d4 commit e7f5ab8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/management/passwd/passwd.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class PasswdController {
5858
message: 'Password changed',
5959
...debug,
6060
});
61-
}catch(e){
61+
} catch (e) {
6262
return res.status(HttpStatus.BAD_REQUEST).json({
6363
message: 'Erreur serveur',
6464
...debug,

src/management/passwd/passwd.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class PasswdService extends AbstractService {
147147
this.logger.log('mailer.identityMailAttribute : ' + mailAttribute);
148148
if (mailAttribute !== '') {
149149
const mail = <string>get(identity.toObject(), mailAttribute);
150-
if (mail){
150+
if (mail) {
151151
const smtpParams = await this.mailadmService.getParams();
152152
//demande du token
153153
const k = crypto.randomBytes(PasswdService.RANDOM_BYTES_K).toString('hex');
@@ -179,9 +179,9 @@ export class PasswdService extends AbstractService {
179179
});
180180

181181
return true;
182-
}else{
182+
} else {
183183
this.logger.error('Error while initAccount identityMailAttribute Empty');
184-
return false
184+
return false;
185185
}
186186
} else {
187187
this.logger.error('Error while initAccount identityMailAttribute not defined');
@@ -214,7 +214,7 @@ export class PasswdService extends AbstractService {
214214
identity._id,
215215
{
216216
passwdDto,
217-
...identity.toJSON()
217+
...identity.toJSON(),
218218
},
219219
{
220220
async: false,
@@ -385,7 +385,7 @@ export class PasswdService extends AbstractService {
385385
const [_, response] = await this.backends.executeJob(
386386
ActionType.IDENTITY_PASSWORD_RESET,
387387
identity._id,
388-
{ uid: tokenData.uid, newPassword: data.newPassword, ...pick(identity, ['inetOrgPerson']) },
388+
{ uid: tokenData.uid, newPassword: data.newPassword, ...identity.toJSON() },
389389
{
390390
async: false,
391391
timeoutDiscard: true,

0 commit comments

Comments
 (0)