2014-05-27

posted May 27, 2014, 6:22 AM by Samuel Konstantinovich   [ updated May 27, 2014, 6:51 AM ]
Lab20:

You should already have a login.py that looks at a password file. That password file should be located in your lab20 directory.

Add a new user/hash to your file: (I will use this to try to log in!)
user = konstans 
hash = 50d96e01ef03c80de481f38fe55d0955

lab20b:

make a link from your login.py to create.py.

create.py will have a way to create an account using a user field, and a password field + submit button.

1. If either field is blank, you should print an error.
2. If the username has special characters in it print an error.  (store all users as lower case, when people log in you should convert the username to lower case.)
3. If the user name is already in your password file, print an error.
4. If the password isn't good enough print an error. Good enough includes:
   10 or more characters
   at least 1   uppercase, lower case, number, and special character (something that is not an upper/lower/number is a special character)
5. When everything is good we will print "success"  but won't do anything else.


Comments