updated urls
This commit is contained in:
parent
3cb15005e2
commit
3566409652
3
app.py
3
app.py
@ -306,6 +306,9 @@ def delete_account() -> Response:
|
|||||||
# Clear home page cache as well since it shows account stats
|
# Clear home page cache as well since it shows account stats
|
||||||
cache_key_home = f"view/{session['username']}/home"
|
cache_key_home = f"view/{session['username']}/home"
|
||||||
cache.delete(cache_key_home)
|
cache.delete(cache_key_home)
|
||||||
|
# Run the NPM config update in a background thread to remove the deleted account's redirect
|
||||||
|
thread = threading.Thread(target=_update_npm_config_in_background, args=(session["auth_credentials"],))
|
||||||
|
thread.start()
|
||||||
return redirect(url_for("user_accounts"))
|
return redirect(url_for("user_accounts"))
|
||||||
|
|
||||||
@app.route("/validateAccount", methods=["POST"])
|
@app.route("/validateAccount", methods=["POST"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user