Chocobozzz/PeerTube

View on GitHub
client/src/app/shared/form-validators/reset-password-validators.ts

Summary

Maintainability
A
40 mins
Test Coverage
import { Validators } from '@angular/forms'
import { BuildFormValidator } from './form-validator.model'

export const RESET_PASSWORD_CONFIRM_VALIDATOR: BuildFormValidator = {
  VALIDATORS: [
    Validators.required
  ],
  MESSAGES: {
    required: $localize`Confirmation of the password is required.`
  }
}