Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1 KB

ex05.md

File metadata and controls

38 lines (28 loc) · 1 KB

Exercise 5

Milestone 20: Complete Login function

  • Pull the prj301-demo5.
  • Create a new table user
CREATE TABLE user (
    username VARCHAR(100) PRIMARY KEY,
    password VARCHAR(200),
    access_right VARCHAR(20),
    last_login DATE,
    token VARCHAR(200),
    token_expired_date DATE
)
  • Complete the AccessManager.login to check username and password
  • Take a screenshot of database
  • Take a screenshot of browser
  • Take a screenshot of AccessManager.login

Milestone 21: Develop AccessController1 to understand Login function

  • Create a new controller AccessController1

  • Develop Login function (students follow video to develop)

  • Update StudentController with security check code.

  • Take a video to demonstrate Login function and Student list GUI without Login

  • Take a screenshot of your code.

Milestone 22: Update view/login.jsp

  • Update the file view/login.jsp to show message if wrong username or password.
  • Take a screenshot of the browser
  • Take a screenshot of view/login.jsp