Page 1 of 1

i need the code for the questions and uses visual studio code Introduction You are required to create a login management

Posted: Tue Jul 12, 2022 8:16 am
by answerhappygod
i need the code for the questions and uses visual studiocode
IntroductionYou are required to create a login management web applicationutilizing PDO and DAO. The app has three controller files such thatuse can register, login and see their profile (or logout).Requirement1. You cannot modify the database schema in any way2. You cannot modify any provided class name and functionsignature3. Use the naming convention for the controller files4. All constant declarations needs to be set in theconfig.inc.php5. Make sure to run the sql script before implementing your phpcodeFiles1. Assignment4_register_ABcXXXXX.phpa. Complete the controller logic for the profile registration. Theinputs need to be validated. Entries with valid data will be storedto the database. Please see the requirement for the validationbelow.b. Make sure the password being stored in the database ishashedc. Upon the completion of creating the new user, the user will beredirected to the login paged. You need to make sure that the validation, createUser() in theUserDAO class, and displayRegistration() in the Page class isworking correctly to enable the registration functionality.2. Assignment4_login_ABcXXXXX.php: Complete the controller logicfor the user login. Upon successful login, the user will beforwarded to the user profile page. If the user entered wrongusername or password, the login controller will update the page’snotification to display the error.3. Assignment4_profile_logout_ABcXXXXX.php: Complete the controllerlogic for the user profile. In order to display the not securityquestion, you need to use the $question array from config.inc.phpand the keys obtained from the question column of the databasetable.Notice that the logout section is displayed only when the form issubmitted. If there was no form submission, the controller willcheck whether the loggedin session is active or not. If it isactive, the corresponding user profile will be displayed. If thereis no active session, the user will be forwarded to the loginpage.If there is a form submission, make sure that the session is unsetand destroyed.4. Entitity/User.class.php: Create the setters, getters and verifypassword functionality5. Entity/Page.class.php:a. Complete the displayHeader(), displayFooter(), displayLogin(),displayProfile(User $user, Array $question), displayRegistration(),and displayLogout(). See the figures attached for reference. Noticethat the displayProfile function requires $question array which isdeclared at config.inc.php.b. Your student ID and name should be saved as the static member ofthe page class and should be used to display the page’sheading.c. Make sure to take care the link on displayLogin() anddisplayRegistration().d. In the displayRegistration(), notice that the radio buttonvalues are profile1 until profile6. These are the filenames of theimages in the images/ folder. You can either save that value or thecomplete filename (with its extension) in the database columnpicture.
In the displayProfile(User $user, Array $question), followingyour approach in saving the filename for the profile’s image, youneed to make sure that the profile image will be displayedcorrectly. Also make sure to display the not security questioncorrectly using the $question from the config.inc.php and thecorresponding question column from the database6. Utility/LoginManager.class.php: Complete the class. Make sure toforward the user to the login page if the user is not loggedin.7. Utility/UserDAO.class.php: Complete the class. Make sure allqueries used prepared statements and parameter binding. All entriesin the database need to be cleaned and trimmed.8. Utility/Validate.class.php: Please validate all inputs as statedin the comments in that file. All errors need to be saved in thepage’s notifications static member.Note: A 0.5 bonus mark will be given if you check to the databasewhether a user with the same username has been created or not. Ifsuch a thing appears, an error message related to that should bealso displayed in the registration page.
Hints1. Refer to the Lecture 08 for the PDO/DAO, and Lecture 09 for theauthentication and session2. If you cannot make the registration controller to work, add adummy user with hashed password as an entry to the database andmake sure the login, profile and logout are working fine
I Need The Code For The Questions And Uses Visual Studio Code Introduction You Are Required To Create A Login Management 1
I Need The Code For The Questions And Uses Visual Studio Code Introduction You Are Required To Create A Login Management 1 (169.51 KiB) Viewed 30 times
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x 21°C 맑음 www 2 / 5 Please Sign in Username Password Login (entering username and password) Assignment 4 (Authentication) - Bambang (1234567) Don not have an account? Please register) sarifb Please Sign in | | 125% Login DI Autofocus. Email address is used as the login Input type password Link to the registration page Login error (such a user does not exist), the login form is displayed along with the error message Assignment 4 (Authentication) - Bambang (1234567) ^A 한 4 ? X 로그인 3:11 PM 7/11/2022 & DVD >>
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x H ☆ 21°C 맑음 2/5 Please Sign in Username Password Login error (such a user does not exist), the login form is displayed along with the error message Assignment 4 (Authentication) - Bambang (1234567) Wrong username or password Don not have an account? Please register 125% Username for login Password Login com Error message ^A 한 4 X ? 로그인 3:11 PM 7/11/2022 12 VO
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x 21°C 맑음 ↑ ↓↓ Have an account? Please login- Please fill the form Username Registration (entering the values) Assignment 4 (Authentication) - Bambang (1234567) Password Password confirm 3 / 5 Email Address Profile Picture | 125% JohnD ******** DU [email protected] Link to the login page Both must use input type password. The password must be in a 5-digits string format. Password confirm needs to be compared against the first password using string comparison ^ A $t 4 ? X 로그인 3:11 PM 7/11/2022 & VO
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) Assignment4_002.p... x 홈 도구 H ↓ 21°C 맑음 3 / 5 Have an account? Please login- Please fill the form Username Password Password confirm Email Address Profile Picture Not a security question. Answer of the not security question | JohnD **** ******** 125% [email protected] Which planet do you want to go for your next vacation? Saturn Register TALK Both must use input type password. The password must be in a 5-digits string format. Password confirm needs to be compared against the first password using string comparison do ^A 한 4 0 X 로그인 3:11 PM 7/11/2022 ✅ 2 2 Ø VO». Þ
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x H ☆ ↓ ● 21°C 맑음 7 l & D Registration. Notice the error message: wrong password or password and password confirm does not match, and none of the picture was selected. All inputs are required. Please fix the error(s) in the password, profile picture inputs. Please fill the form Username Password Password confirm Email Address Profile Picture Not a security question 3 / 5 | | 125% Enter username with no whitespace Password Password confirm Email address for login What is your favorite security question? The error message; it should also state that none of the avatar picture was selected. A 한 4 X 로그인 3:11 PM 7/11/2022 & VO".
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x H 21°C 맑음 3/5 ritast till the Imm Username Password Password confirm Email Address Profile Picture Not a security question. Answer of the not security question 125% Enter username with no whitespace Password Password confirm Email address for login What is your favorite security question? Answer of of not security question Register Q state that none of the avatar picture was selected. ^A 한 4 X ? 로그인 3:11 PM 7/11/2022 & VO».
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x 21°C 맑음 ↓ Registration (entering all the values correctly) Please fill the form Username Password Password confirm Email Address Profile Picture 4/5 Not a security question Answer of the not security question 125% JohnD [email protected] Which planet do you want to go for your next vacation? Saturn Register 1 20 ^ A 한 4 ? X 로그인 3:11 PM 7/11/2022 ✅ & VO». Ⓡ Al
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x H 21°C 맑음 Username Password ® 4/5 Successful registration will bring the user to the login page. Entering the username and password ... Please Sign in Don not have an account? Please register | JohnD 8 125% Login Successful login will bring the user to the profile page. Assignment 7 & 1 4 (Authentication) - Bambang (1234567) Hi JohnD Email Address: [email protected] The not security question: Which Planet Do You Want To Go For Your Next Vacation? username The not security question A 한 4 X 로그인 3:12 PM 7/11/2022 & VO
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x H ☆ 21°C 맑음 ↓ 4/5 125% Successful login will bring the user to the profile page. Assignment 4 (Authentication) - Bambang (1234567) Hi JohnD Email Address: [email protected] The not security question: Which Planet Do You Want To Go For Your Next Vacation? Answer of the not security question: Saturn Logout I tu D username The not security question Submitting this form will unset and destroy the session and display the logout message. ^A 한 4 ? X 로그인 3:12 PM 7/11/2022 12 VO
Assignment4_002.pdf - Adobe Acrobat Reader DC (64-bit) 파일(F) 편집(E) 보기(V) 서명(S) 창(W) 도움말(H) 도구 Assignment4_002.p... x 21°C 맑음 125% ▾ 2 Logout page (accessed by clicking the logout button in the profile page) Assignment 4 (Authentication) - Bambang (1234567) Thank you for your visit JohnD! Username Password 5 / 5 Don Visiting the profile page without login, the user will be redirected to the Login page. Please Sign in | have an account? Please register 以要 Username for login Password Login username ^ A et X ? 로그인 3:12 PM 7/11/2022 ✅ VO». Ⓡ