- Added cookie for keep token
    - Added username in login button if user is connected
This commit is contained in:
Kum1ta
2024-08-07 22:34:07 +02:00
parent bfb31a1ae6
commit d92f1eab47
8 changed files with 152 additions and 35 deletions

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/08/03 15:54:14 by edbernar #+# #+# #
# Updated: 2024/08/04 15:55:15 by edbernar ### ########.fr #
# Updated: 2024/08/07 21:20:17 by edbernar ### ########.fr #
# #
# **************************************************************************** #
@ -34,7 +34,6 @@ class User():
print("\033[43m|------ User disconnected -------|\033[1;0m")
print("User :", self.username)
print("Id :", self.id)
connected_clients.remove(self)
async def sendError(self, message, code, error=None):
try: