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

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

Loading…
Cancel
Save