@arsedizioni/ars-utils 22.0.74 → 22.0.75

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.
@@ -3144,12 +3144,13 @@ class ResetPasswordDialogComponent {
3144
3144
  this.showPassword2 = signal(false, /* @ts-ignore */
3145
3145
  ...(ngDevMode ? [{ debugName: "showPassword2" }] : /* istanbul ignore next */ []));
3146
3146
  const data = this.dialogData();
3147
- if (data.mode !== 'forgot' && !data.userId) {
3147
+ const requireUserId = data.mode !== 'forgot' && data.mode !== 'otp' && data.mode !== 'old';
3148
+ if (requireUserId && !data.userId) {
3148
3149
  this.dialogRef.close();
3149
3150
  this.dialogService.error('Utente non specificato.');
3150
3151
  return;
3151
3152
  }
3152
- if (data.mode === 'forgot' && !data.userEmail) {
3153
+ else if ((data.mode === 'forgot' || data.mode === 'otp' || data.mode === 'old') && !data.userEmail) {
3153
3154
  this.dialogRef.close();
3154
3155
  this.dialogService.error('Email utente non specificata.');
3155
3156
  return;