diff --git a/src/Client/src/app/pages/account/login/login.component.html b/src/Client/src/app/pages/account/login/login.component.html index ee23245..a225d3d 100644 --- a/src/Client/src/app/pages/account/login/login.component.html +++ b/src/Client/src/app/pages/account/login/login.component.html @@ -1,4 +1,14 @@
+ +
+

Your logging into

+ @if (returnURL == '/'){ +

https://auth.mistox.com

+ } @else { +

{{ this.returnURL }}

+ } +
+

Login

@@ -35,6 +45,13 @@ } } -
+ + @if (returnURL != '/') { +
+

WARNING

+

By signing in you are giving the remote website access to your profile. They will not have access to your credentials but will have access to your account data.

+
+ } +
\ No newline at end of file diff --git a/src/Client/src/app/pages/account/login/login.component.ts b/src/Client/src/app/pages/account/login/login.component.ts index 07b2577..d898e3f 100644 --- a/src/Client/src/app/pages/account/login/login.component.ts +++ b/src/Client/src/app/pages/account/login/login.component.ts @@ -43,7 +43,7 @@ export class LoginComponent { } this.errorMsgs.push("Waiting for response from server"); - this.http.post( "api/auth/login", { "UserName": this.UserName, "Password": this.Password, "StayLoggedIn": this.StayLoggedIn }, { responseType: 'text' } ).subscribe({ + this.http.post( "api/auth/login", { "UserName": this.UserName, "Password": this.Password, "StayLoggedIn": this.StayLoggedIn, "SameSite": (this.returnURL == '/') }, { responseType: 'text' } ).subscribe({ next: data => { this.errorMsgs = [ "Login Token: " + data ]; window.location.href = this.returnURL + "?LoginToken=" + data;