from flask import request @app.route(...) def login(): username = request.args.get('username') password = request.args.get('password')