broken auth WIP
This commit is contained in:
10
capsulflask/model.py
Normal file
10
capsulflask/model.py
Normal 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
|
Reference in New Issue
Block a user