Fix some login stuff

This commit is contained in:
derek committed 2025-07-21 16:41:17 -07:00
1 parent dbc4d973f9
commit c87ef1cfc2
2 files changed
+2 -1

No files matched your search

@@ -23,7 +23,7 @@ export class LogoutComponent {
ngAfterViewInit(){
this.auth.Logout().subscribe({
next: data => {
this.router.navigate(["/"]);
window.location.href = "";
}
});
}
@@ -24,6 +24,7 @@ export class Authentication{
let sub = this.http.post<Account>( "api/account/login", body, { headers } );
sub.subscribe({
next: data => {
data.passwordHash = "";
this._user.next(data);
this.setUserToStorage(data, StayLoggedIn == true ? SessionType.Forever : SessionType.Session);
},