feat(auth): put login and register templates in files

This commit is contained in:
Constantin Simonis 2025-05-07 15:10:21 +02:00
commit 8ba6d4e4d9
No known key found for this signature in database
GPG key ID: 3878FF77C24AF4D2
6 changed files with 172 additions and 182 deletions

View file

@ -30,10 +30,7 @@ export class AuthService {
// Check if token exists and load user data
if (this.getToken()) {
console.log('Token found, loading user data...');
this.loadCurrentUser();
} else {
console.log('No token found, user not logged in.');
}
}
@ -88,8 +85,7 @@ export class AuthService {
next: (user) => {
this.setUser(user);
},
error: (e) => {
console.log(e);
error: () => {
this.logout();
},
});