Signed up recently but had issues with the confirmation email?
Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.
Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.
301.16 Defensive Design
Practise exam questionsDefensive Design — Note 3 of 5
Username + password.
Authentication verifies a user's identity, typically with a username and password. A simple implementation checks entered credentials against stored values.
== for comparison, not =STORED_USER = "admin"
STORED_PASS = "secret123"
attempts = 3
user = input("Username: ")
pwd = input("Password: ")
while (user != STORED_USER or pwd != STORED_PASS) and attempts > 1:
attempts -= 1
print("Incorrect. " + str(attempts) + " attempts left")
user = input("Username: ")
pwd = input("Password: ")
if user == STORED_USER and pwd == STORED_PASS:
print("Login successful")
else:
print("Account locked")Specification notes for programming are in Paper 2.