Using OTAC on register

This commit is contained in:
Zoe Roux 2020-03-20 01:16:28 +01:00
parent ccbda0fd74
commit ea651dd593

View File

@ -42,7 +42,14 @@ export class LoginComponent
useOTAC(otac: string) useOTAC(otac: string)
{ {
console.log("Got an OTAC: " + otac); this.http.post("/api/account/otac-login", {"otac": otac}).pipe(catchError((error =>
{
this.registerErrors = error.error;
return EMPTY;
}))).subscribe(() =>
{
window.location.href = this.redirectURI;
});
} }
async register() async register()