feat: Add iOS-specific enhancements and mobile compatibility utilities
- Implemented `remove_key` function in verify.py to allow key removal by user ID. - Updated run.sh to include additional dependencies for QR code and TOTP support. - Introduced ios_fixes.js for iOS-specific enhancements including file input handling, form submission fixes, and image handling optimizations. - Added mobile_compatibility.js for mobile device detection and utility functions to improve compatibility, especially for iOS. - Created base.html template for consistent layout and styling across the application. - Developed login.html template with a password toggle feature for better user experience.
This commit is contained in:
@@ -46,5 +46,16 @@ def new_key() -> str:
|
||||
register_new_Key(data)
|
||||
return generated_key
|
||||
|
||||
|
||||
def remove_key(user_id: str) -> bool:
|
||||
data = load_file()
|
||||
filtered = [item for item in data if str(item.get("user_id", "")) != str(user_id)]
|
||||
|
||||
if len(filtered) == len(data):
|
||||
return False
|
||||
|
||||
register_new_Key(filtered)
|
||||
return True
|
||||
|
||||
def key_generator():
|
||||
return secrets.token_urlsafe(32)
|
||||
Reference in New Issue
Block a user