Deploy: 2026-05-23 03:56:31

This commit is contained in:
Hamza-Ayed
2026-05-23 03:56:31 +03:00
parent a4eda883db
commit 2ad4f49804
4 changed files with 894 additions and 1 deletions

View File

@@ -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;