Skip to content

Commit 80a47e0

Browse files
committed
#34 ajout identity dans les reset de mdp
1 parent d3c192b commit 80a47e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/management/passwd/passwd.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ export class PasswdService extends AbstractService {
213213
ActionType.IDENTITY_PASSWORD_CHANGE,
214214
identity._id,
215215
{
216-
...passwdDto,
217-
...pick(identity.toJSON(), ['inetOrgPerson']),
216+
passwdDto,
217+
...identity.toJSON()
218218
},
219219
{
220220
async: false,
@@ -348,7 +348,7 @@ export class PasswdService extends AbstractService {
348348
const [_, response] = await this.backends.executeJob(
349349
ActionType.IDENTITY_PASSWORD_RESET,
350350
identity._id,
351-
{ uid: tokenData.uid, newPassword: data.newpassword, ...pick(identity, ['inetOrgPerson']) },
351+
{ newPassword: data.newpassword, ...identity.toJSON() },
352352
{
353353
async: false,
354354
timeoutDiscard: true,

0 commit comments

Comments
 (0)