parent
bd00f4f8d5
commit
24c38cce26
|
@ -71,4 +71,33 @@ export class UserDeletionNotConfirmedError extends NotAcceptableError {
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "You are trying to delete a user! \n If you're sure about doing this: provide the ?force=true query param."
|
message = "You are trying to delete a user! \n If you're sure about doing this: provide the ?force=true query param."
|
||||||
|
}
|
||||||
|
|
||||||
|
export class PasswordMustContainUppercaseLetterError extends NotAcceptableError {
|
||||||
|
@IsString()
|
||||||
|
name = "PasswordMustContainUppercaseLetterError"
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
message = "Passwords must contain at least one uppercase letter."
|
||||||
|
}
|
||||||
|
export class PasswordMustContainLowercaseLetterError extends NotAcceptableError {
|
||||||
|
@IsString()
|
||||||
|
name = "PasswordMustContainLowercaseLetterError"
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
message = "Passwords must contain at least one lowercase letter."
|
||||||
|
}
|
||||||
|
export class PasswordMustContainNumberError extends NotAcceptableError {
|
||||||
|
@IsString()
|
||||||
|
name = "PasswordMustContainNumberError"
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
message = "Passwords must contain at least one number."
|
||||||
|
}
|
||||||
|
export class PasswordTooShortError extends NotAcceptableError {
|
||||||
|
@IsString()
|
||||||
|
name = "PasswordTooShortError"
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
message = "Passwords must be at least ten characters long."
|
||||||
}
|
}
|
Loading…
Reference in New Issue