@loomcore/api 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -189,7 +189,7 @@ export class AuthService extends MultiTenantApiService {
|
|
|
189
189
|
}
|
|
190
190
|
const validationErrors = entityUtils.validate(passwordValidator, { password: password });
|
|
191
191
|
entityUtils.handleValidationResult(validationErrors, 'AuthService.resetPassword');
|
|
192
|
-
const result = await this.changePassword(
|
|
192
|
+
const result = await this.changePassword(getSystemUserContext(), { email: lowerCaseEmail }, password);
|
|
193
193
|
console.log(`password changed using forgot-password for email: ${lowerCaseEmail}`);
|
|
194
194
|
await this.passwordResetTokenService.deleteById(EmptyUserContext, retrievedPasswordResetToken._id.toString());
|
|
195
195
|
console.log(`passwordResetToken deleted for email: ${lowerCaseEmail}`);
|