Quellcode durchsuchen

request.args -> request.form for POST

master
Ben Kurtovic vor 8 Jahren
Ursprung
Commit
eedacfb594
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +2
    -2
      app.py
  2. +1
    -1
      calefaction/modules/campaigns.py

+ 2
- 2
app.py Datei anzeigen

@@ -65,8 +65,8 @@ def index():
@app.catch_exceptions
def login():
"""Handle the last step of a SSO login request."""
code = request.args.get("code")
state = request.args.get("state")
code = request.values.get("code")
state = request.values.get("state")

success, caught = try_func(lambda: auth.handle_login(code, state))
if success:


+ 1
- 1
calefaction/modules/campaigns.py Datei anzeigen

@@ -38,7 +38,7 @@ def campaign():
@blueprint.rroute("/settings/campaign", methods=["POST"])
def set_campaign():
"""Update the user's currently selected campaign."""
campaign = request.args.get("campaign")
campaign = request.form.get("campaign")
if campaign not in config["enabled"]:
abort(400)
g.auth.set_character_modprop("campaigns", "current", campaign)


Laden…
Abbrechen
Speichern