Citizen runners now have to provide an email address for verification

ref #112
This commit is contained in:
2021-01-21 17:19:04 +01:00
parent 6df195b6ec
commit dee36395a6
2 changed files with 17 additions and 9 deletions

View File

@@ -35,6 +35,17 @@ export class RunnerGroupNeededError extends NotAcceptableError {
message = "Runner's need to be part of one group (team or organisation)! \n You provided neither."
}
/**
* Error to throw when a citizen runner has no mail-address.
*/
export class RunnerEmailNeededError extends NotAcceptableError {
@IsString()
name = "RunnerEmailNeededError"
@IsString()
message = "Citizenrunners have to provide an email address for verification and contacting."
}
/**
* Error to throw when a runner still has distance donations associated.
*/