Password Policy and Admin: Delete Blog Entries
For security reasons you have decided to publish and enforce a password policy:Every password must be at least 6 characters and must include an uppercase letter, lowercase letter and a digit.
1. Modify login.html to allow a new user to register: 5 points
2. Add a new method to login.php to register a new user and to enforce the password policy: 25 points
If the password does not meet the requirements throw an exception and catch it back in "main"
3. For the admin login there is now an admin.html page. Within that page there is functionality to delete a blog entry. The code provided will work as long as there is no TAG associated with the blog entry. If there is a TAG (or TAGs) they must by deleted from the "post_has_tags" table before the blog is deleted. Failure to do this will result in an SQL foreign-key-constraint error.
Enhance the delete code to check for and delete tags if necessary: 30 points
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here