You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
562 B

import {
view,
Injectable,
BasicRegistrationAttempt,
BasicLoginProvider,
Valid,
Controller,
} from '@extollo/lib'
/**
* Registration Controller
* ------------------------------------
* Put some description here.
*/
@Injectable()
export class Registration extends Controller {
public registration() {
return view('auth:register')
}
public async register(attempt: Valid<BasicRegistrationAttempt>) {
return this.make<BasicLoginProvider>(BasicLoginProvider)
.attemptRegistration(attempt)
}
}