mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Using OTAC on register
This commit is contained in:
parent
ccbda0fd74
commit
ea651dd593
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user