Deploy: 2026-05-23 03:56:31
This commit is contained in:
@@ -1927,6 +1927,11 @@
|
||||
checkAuth() {
|
||||
this.token = localStorage.getItem('nabeh_token');
|
||||
const storedUser = localStorage.getItem('nabeh_user');
|
||||
if (window.location.pathname === '/register') {
|
||||
this.authTab = 'register';
|
||||
} else {
|
||||
this.authTab = 'login';
|
||||
}
|
||||
if (this.token && storedUser) {
|
||||
this.user = JSON.parse(storedUser);
|
||||
this.isLoggedIn = true;
|
||||
|
||||
Reference in New Issue
Block a user