Release v0.6.0 #159

Merged
niggl merged 43 commits from dev into main 2021-03-17 17:58:21 +00:00
Showing only changes of commit e5dab3469c - Show all commits

View File

@ -56,11 +56,14 @@ export class RunnerSelfServiceController {
return responseScans;
}
@Post('/runners/me/forgot')
@Post('/runners/forgot')
@ResponseSchema(RunnerNotFoundError, { statusCode: 404 })
@OnUndefined(ResponseEmpty)
@OpenAPI({ description: 'TODO' })
async requestNewToken(@QueryParam('mail') mail: string) {
if (!mail) {
throw new RunnerNotFoundError();
}
const runner = await this.runnerRepository.findOne({ email: mail });
if (!runner) { throw new RunnerNotFoundError(); }