MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / signin

Function signin

main.py:451–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449
450@app.route("/signin")
451def signin():
452 email = request.args.get("email", None)
453 password = request.args.get("password", None)
454 user = users.findOne({"email": email})
455
456 if user:
457 session["user_id"] = str(user._id)
458 return make_response(json.dumps({"status": "error", "error": "no_user"}))
459
460@app.route("/signup")
461def signup():

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected