From d18d64787b3ea174f7dc2740c8c8c9555625047e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Jun 2018 10:58:45 +0200 Subject: Form validators refractoring --- client/src/app/shared/forms/form-validators/reset-password.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 client/src/app/shared/forms/form-validators/reset-password.ts (limited to 'client/src/app/shared/forms/form-validators/reset-password.ts') diff --git a/client/src/app/shared/forms/form-validators/reset-password.ts b/client/src/app/shared/forms/form-validators/reset-password.ts new file mode 100644 index 000000000..7dafdef9a --- /dev/null +++ b/client/src/app/shared/forms/form-validators/reset-password.ts @@ -0,0 +1,10 @@ +import { Validators } from '@angular/forms' + +export const RESET_PASSWORD_CONFIRM = { + VALIDATORS: [ + Validators.required + ], + MESSAGES: { + 'required': 'Confirmation of the password is required.' + } +} -- cgit v1.2.3