|
@ -4,7 +4,7 @@ from functools import wraps |
|
|
def login_required(func): |
|
|
def login_required(func): |
|
|
@wraps(func) |
|
|
@wraps(func) |
|
|
def wrapper(*args, **kwargs): |
|
|
def wrapper(*args, **kwargs): |
|
|
print("login") |
|
|
# login functionality could come here |
|
|
return func(*args, **kwargs) |
|
|
return func(*args, **kwargs) |
|
|
|
|
|
|
|
|
return wrapper |
|
|
return wrapper |
|
|