Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def index():
|
|
| 45 |
@app.route("/signup")
|
| 46 |
def signup():
|
| 47 |
# if not allow_signups:
|
| 48 |
-
abort(404)
|
| 49 |
return render_template("signin.html")
|
| 50 |
|
| 51 |
@app.route("/login", methods=['GET', 'POST'])
|
|
@@ -88,7 +88,7 @@ async def signupAPI():
|
|
| 88 |
supabase: AsyncClient = await acreate_client(url, key)
|
| 89 |
error = None
|
| 90 |
# if not allow_signups: # Security mainly. Only allow signups when I want to.
|
| 91 |
-
abort(404)
|
| 92 |
if request.method == 'POST':
|
| 93 |
data = json.loads(request.data)
|
| 94 |
sPass = jwt.encode({"password": data["password"]}, jwtKey, algorithm="HS256")
|
|
|
|
| 45 |
@app.route("/signup")
|
| 46 |
def signup():
|
| 47 |
# if not allow_signups:
|
| 48 |
+
#abort(404)
|
| 49 |
return render_template("signin.html")
|
| 50 |
|
| 51 |
@app.route("/login", methods=['GET', 'POST'])
|
|
|
|
| 88 |
supabase: AsyncClient = await acreate_client(url, key)
|
| 89 |
error = None
|
| 90 |
# if not allow_signups: # Security mainly. Only allow signups when I want to.
|
| 91 |
+
#abort(404)
|
| 92 |
if request.method == 'POST':
|
| 93 |
data = json.loads(request.data)
|
| 94 |
sPass = jwt.encode({"password": data["password"]}, jwtKey, algorithm="HS256")
|