Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Temp Enable Auto Approve #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def login():
page_context = {
"data": decoded
}
return render_template("register.html", **page_context)
return "Your account has been approved. You can close this window.", 200
# return render_template("register.html", **page_context)
except Exception as e:
logger.error("an exception occurred approving accounts", exception=traceback.format_exc())
return {"error": "failed to approve account"}, 500
Expand Down