()
| 449 | |
| 450 | @app.route("/signin") |
| 451 | def 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") |
| 461 | def signup(): |