broken auth WIP

This commit is contained in:
2020-05-09 20:36:14 -05:00
parent 119d4a0052
commit 246ef00540
7 changed files with 122 additions and 13 deletions

10
capsulflask/model.py Normal file
View File

@ -0,0 +1,10 @@
class Model:
def __init__(self, connection, cursor):
self.connection = connection
self.cursor = cursor
def emailExists(self, email):
self.cursor.execute("SELECT * FROM accounts WHERE email = %(email)s", {"email": email})
return len(self.cursor.fetchall()) > 0