working #6

Merged
derek merged 17 commits from working into main 2025-07-29 10:20:18 -07:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit c87ef1cfc2 - Show all commits
@@ -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);
},