diff --git a/account/account.py b/account/account.py index 021223c..a65554d 100644 --- a/account/account.py +++ b/account/account.py @@ -2,6 +2,7 @@ from flask import Flask, render_template, request, redirect, url_for, make_respo import bcrypt import sqlite3 import configparser +import subprocess from waitress import serve # Load from config.ini @@ -65,8 +66,7 @@ def delete(): if passwordhash: if verify_hash == passwordhash: - # return "Your account would have been deleted... if this worked. Which it doesn't. Email postmaster@hectabit.org to delete your email." - cmd = ["maddy", "creds", "delete", key_to_fetch] + cmd = ["maddy", "creds", "remove", key_to_fetch] result = subprocess.run(" ".join(cmd), shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if result.returncode == 0: