Skip to content

Commit 7091335

Browse files
committed
correction json sent to backend, correction supannPerson
1 parent 018627b commit 7091335

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/core/backends/backends.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,10 @@ export class BackendsService extends AbstractQueueProcessor {
261261
params: payload,
262262
concernedTo: identity
263263
? {
264-
$ref: 'identities',
265-
id: concernedTo,
266-
name: [identity?.inetOrgPerson?.cn, identity?.inetOrgPerson?.givenName].join(' '),
267-
}
264+
$ref: 'identities',
265+
id: concernedTo,
266+
name: identity?.inetOrgPerson?.cn,
267+
}
268268
: null,
269269
comment: options?.comment,
270270
task: options?.task,

src/management/identities/validations/_config/supannPerson.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ properties:
2323
type: string
2424
description: Field corresponding to supannCodeINSEEVilleDeNaissance
2525
supannAutreMail:
26-
type: array
26+
type: string
2727
description: Field corresponding to supannAutreMail
2828
items:
2929
type: string

src/management/passwd/passwd.service.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ export class PasswdService extends AbstractService {
213213
ActionType.IDENTITY_PASSWORD_CHANGE,
214214
identity._id,
215215
{
216-
passwdDto,
216+
uid: passwdDto.uid,
217+
oldPassword: passwdDto.oldPassword,
218+
newPassword: passwdDto.newPassword,
217219
...identity.toJSON(),
218220
},
219221
{
@@ -348,11 +350,11 @@ export class PasswdService extends AbstractService {
348350
const [_, response] = await this.backends.executeJob(
349351
ActionType.IDENTITY_PASSWORD_RESET,
350352
identity._id,
351-
{ newPassword: data.newpassword, ...identity.toJSON() },
353+
{ uid: identity.inetOrgPerson.uid, newPassword: data.newpassword, ...identity.toJSON() },
352354
{
353355
async: false,
354356
timeoutDiscard: true,
355-
disableLogs: true,
357+
disableLogs: false,
356358
updateStatus: false,
357359
},
358360
);
@@ -389,7 +391,7 @@ export class PasswdService extends AbstractService {
389391
{
390392
async: false,
391393
timeoutDiscard: true,
392-
disableLogs: true,
394+
disableLogs: false,
393395
updateStatus: false,
394396
},
395397
);

0 commit comments

Comments
 (0)