adaugat lab4 si lab5
Signed-off-by: hellisabove <robertnedela15@gmail.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
""" 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
|
||||
Reference in New Issue
Block a user