mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
501b225e40
* Move accounts settings under sudo * Fixed sudo mode * Add a log message * Update test * Renamed sudo_setting to account_setting * Moved simple login data export and alias/import export to account settings * Move account settings to the top-right dropdown
11 lines
354 B
Python
11 lines
354 B
Python
from app.dashboard.base import dashboard_bp
|
|
from flask_login import login_required, current_user
|
|
from app.alias_utils import alias_export_csv
|
|
from app.dashboard.views.enter_sudo import sudo_required
|
|
|
|
|
|
@dashboard_bp.route("/alias_export", methods=["GET"])
|
|
@login_required
|
|
@sudo_required
|
|
def alias_export_route():
|
|
return alias_export_csv(current_user)
|