Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
FestplattenSchnitzel committed Jan 6, 2024
1 parent f9d3c18 commit f1a13eb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sipa/blueprints/usersuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from collections import OrderedDict
import logging
from datetime import datetime
from io import BytesIO

from babel.numbers import format_currency
from flask import (
Expand All @@ -14,6 +15,7 @@
abort,
request,
current_app,
send_file,
)
from flask_babel import format_date, gettext
from flask_login import current_user, login_required
Expand Down Expand Up @@ -622,3 +624,15 @@ def reset_wifi_password():
return render_template('generic_form.html',
page_title=gettext("Neues WLAN Passwort"),
form_args=form_args)


@bp_usersuite.route("/get-wlan-apple-mobileconfig", methods=["GET"])
@login_required
def get_wlan_apple_mobileconfig():
"""
Get the mobileconfig for the agdsn WLAN for an Apple device.
"""

s = "blah test"

send_file(BytesIO(bytes(s, encoding="utf-8")), as_attachment=True)

0 comments on commit f1a13eb

Please sign in to comment.