mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-18 10:02:16 +00:00
update simple_jwt
This commit is contained in:
@@ -11,7 +11,13 @@ import threading
|
||||
import time
|
||||
from flask import Blueprint, jsonify, request
|
||||
import auth_manager
|
||||
import jwt
|
||||
|
||||
# Try PyJWT first, fall back to our simple implementation
|
||||
try:
|
||||
import jwt
|
||||
except ImportError:
|
||||
import simple_jwt as jwt
|
||||
|
||||
import datetime
|
||||
|
||||
# Dedicated logger for auth failures (Fail2Ban reads this file)
|
||||
|
||||
Reference in New Issue
Block a user