Php Sample Assignment
Core PHP Pages required for Login Script
- Signup Page – User can request new sign-up. Note: All new sign-up request should be approved by Super Admin.
- Login Page – Users can enter their email & password to gain access to site.
- Login Validate Page – This will validate if user is valid or not. If user is valid, based on his account & role, user will be redirected to appropriate page.
- Login based, landing page – A role based landing page for super admin, client admin & client user.
- Logout Page – This will clear all login credentials saved in session.
- Profile page – Where user can change his details & password
- Password Reset Page – Where valid user can enter his email address. If email address is valid, user gets a new password in his email.
- New User Approval Page – New users will be approved by Super admin. Then they will be assigned to a client account & specific role. Once this is done, new user will be able to access it’s client page with required level of access (client admin OR client User).
Note: A client user should not be able to access Client Admin page, just because he is a valid user in system. There should be username, active & role based check on page to ensure authorized user is accessing correct page. In case of any error, session should be destroyed & user should be directed to Login Page.
MY_SQL User DB Structure
- ID – Int, Auto Increase, Primary, Not Null
- USERNAME – VARCHAR, 256
- PASSWORD – VARCHAR, 256
- CLIENT – VARCHAR, 256
- ROLE – VARCHAR, 256
- VALID – True/False
Want solution for this assignment; contact our online chat support.