pull/2519/head^2
TidusJar 7 years ago
parent 3bcaefc24a
commit 2e90edd9c3

@ -127,11 +127,7 @@ export class LoginComponent implements OnDestroy, OnInit {
} }
public oauth() { public oauth() {
this.plexTv.GetPin(this.clientId, this.appName).subscribe((pin: any) => { const oAuthWindow = window.open(window.location.toString(), "_blank", `toolbar=0,
this.authService.login({ usePlexOAuth: true, password: "", rememberMe: true, username: "", plexTvPin: pin }).subscribe(x => {
window.open(x.url, "_blank", `toolbar=0,
location=0, location=0,
status=0, status=0,
menubar=0, menubar=0,
@ -139,6 +135,10 @@ export class LoginComponent implements OnDestroy, OnInit {
resizable=1, resizable=1,
width=500, width=500,
height=500`); height=500`);
this.plexTv.GetPin(this.clientId, this.appName).subscribe((pin: any) => {
this.authService.login({ usePlexOAuth: true, password: "", rememberMe: true, username: "", plexTvPin: pin }).subscribe(x => {
oAuthWindow!.location.replace(x.url);
this.pinTimer = setInterval(() => { this.pinTimer = setInterval(() => {
this.notify.info("Authenticating", "Loading... Please Wait"); this.notify.info("Authenticating", "Loading... Please Wait");

Loading…
Cancel
Save