fix: admin login khi close tự động logout
This commit is contained in:
BIN
Binary file not shown.
|
After Width: | Height: | Size: 232 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 844 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 844 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 233 KiB |
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM node:20-alpine AS base
|
||||
FROM node:22-alpine AS base
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
||||
@@ -147,6 +147,8 @@ export const LoginModal: React.FC<LoginModalProps> = ({ isOpen, onClose, onSwitc
|
||||
// Lưu phiên đăng nhập
|
||||
localStorage.setItem('token', data.access_token);
|
||||
localStorage.setItem('user', JSON.stringify(data.user));
|
||||
localStorage.removeItem('guest_token');
|
||||
localStorage.removeItem('guest_user');
|
||||
console.log('[LoginModal] Email/password login successful');
|
||||
|
||||
// Regular login - no auto-join for tour
|
||||
|
||||
Reference in New Issue
Block a user