Updated login
This commit is contained in:
parent
2350f45ef4
commit
505e99587d
|
@ -2,6 +2,7 @@ from flask import Flask, render_template, request, redirect, url_for, make_respo
|
||||||
import bcrypt
|
import bcrypt
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import configparser
|
import configparser
|
||||||
|
import subprocess
|
||||||
from waitress import serve
|
from waitress import serve
|
||||||
|
|
||||||
# Load from config.ini
|
# Load from config.ini
|
||||||
|
@ -65,8 +66,7 @@ def delete():
|
||||||
|
|
||||||
if passwordhash:
|
if passwordhash:
|
||||||
if verify_hash == 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", "remove", key_to_fetch]
|
||||||
cmd = ["maddy", "creds", "delete", key_to_fetch]
|
|
||||||
result = subprocess.run(" ".join(cmd), shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
result = subprocess.run(" ".join(cmd), shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
|
||||||
if result.returncode == 0:
|
if result.returncode == 0:
|
||||||
|
|
Loading…
Reference in New Issue