diff --git a/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/Sp6eTSmFO1IB0Mu8UT70tzaGzpYLA-FqevE7B4QhFJs b/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/Sp6eTSmFO1IB0Mu8UT70tzaGzpYLA-FqevE7B4QhFJs new file mode 100644 index 0000000..a56bda3 --- /dev/null +++ b/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/Sp6eTSmFO1IB0Mu8UT70tzaGzpYLA-FqevE7B4QhFJs @@ -0,0 +1 @@ +Sp6eTSmFO1IB0Mu8UT70tzaGzpYLA-FqevE7B4QhFJs.lLiLxfxFr5z8P_l3hX2xIAEY4EIAdM9jhE4QGdFAaw0 diff --git a/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/vC21oWGWP8GufelV0kVHbBuxFeG3EmIA69y_Zb2-Tx8 b/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/vC21oWGWP8GufelV0kVHbBuxFeG3EmIA69y_Zb2-Tx8 deleted file mode 100644 index 71b784e..0000000 --- a/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/vC21oWGWP8GufelV0kVHbBuxFeG3EmIA69y_Zb2-Tx8 +++ /dev/null @@ -1 +0,0 @@ -vC21oWGWP8GufelV0kVHbBuxFeG3EmIA69y_Zb2-Tx8.lLiLxfxFr5z8P_l3hX2xIAEY4EIAdM9jhE4QGdFAaw0 \ No newline at end of file diff --git a/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/zok5W5r0A-RPyOD_8TUqgmBWkTEkcAl1G6I9tH_DyZ0 b/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/zok5W5r0A-RPyOD_8TUqgmBWkTEkcAl1G6I9tH_DyZ0 deleted file mode 100644 index dae6b6f..0000000 --- a/nginx/filesystem/usr/share/nginx/html/.well-known/acme-challenge/zok5W5r0A-RPyOD_8TUqgmBWkTEkcAl1G6I9tH_DyZ0 +++ /dev/null @@ -1 +0,0 @@ -zok5W5r0A-RPyOD_8TUqgmBWkTEkcAl1G6I9tH_DyZ0.lLiLxfxFr5z8P_l3hX2xIAEY4EIAdM9jhE4QGdFAaw0 diff --git a/src/src/app/common/components/twitch-login/twitch-login.component.ts b/src/src/app/common/components/twitch-login/twitch-login.component.ts index 53c935e..d090a34 100644 --- a/src/src/app/common/components/twitch-login/twitch-login.component.ts +++ b/src/src/app/common/components/twitch-login/twitch-login.component.ts @@ -20,13 +20,7 @@ export class TwitchLoginComponent { @Input() redirectUrl: string | null = null; twitchLogin(): void { - let redirectUrl = null; - if (!this.redirectUrl) { - redirectUrl = `${environment.apiUrl}/user/twitch-login`; - } else { - redirectUrl = `${environment.apiUrl}/${this.redirectUrl}`; - } - + const redirectUrl = `${environment.apiUrl}/${this.redirectUrl}`; window.location.href = `https://id.twitch.tv/oauth2/authorize?` + encodeURI(`client_id=${environment.twitchClientId}&` + `redirect_uri=${redirectUrl}&` + diff --git a/src/src/app/view/login/login.component.html b/src/src/app/view/login/login.component.html index eb30034..2547cbf 100644 --- a/src/src/app/view/login/login.component.html +++ b/src/src/app/view/login/login.component.html @@ -16,7 +16,7 @@ data-shape="rectangular" data-logo_alignment="left"> - +