35893a4012
Signed-off-by: hellisabove <robertnedela15@gmail.com>
13 lines
264 B
Python
13 lines
264 B
Python
""" Data model for user accounts """
|
|
|
|
ACCOUNTS = {
|
|
"admin@example.com": "h4ckm3",
|
|
}
|
|
|
|
|
|
def check_login(email, password):
|
|
""" Checks whether the specified credentials are valid """
|
|
if ACCOUNTS.get(email) == password:
|
|
return True
|
|
return False
|