cse522summer2019 / project

0 stars 0 forks source link

Handle Confirmation Code #10

Closed apellechia closed 5 years ago

apellechia commented 5 years ago

Create a confirmation code for a student and save it to the database. When a student checks their email, make sure the code is correct. If a student does not use their confirmation code within 15 minutes, the confirmation code expires and they need to request a new one. Appropriate error messages are provided.

apellechia commented 5 years ago

Task Test:

Steps to get the confirmation code sent to your email: (1) Go to the login page: https://www-student.cse.buffalo.edu/CSE442-542/2019-Summer/cse-442b/login (2) Enter your email (ex. youremail@buffalo.edu). You should be able access the inbox of this email (3) Open your inbox to your email and find the email from CSE 442/542. Open this email (4) You should see a bolded string that is a mix of letters and numbers. It is an aes-128-ctr encrypted. Copy this code. (5) Use url to invoke script. URL: https://www-student.cse.buffalo.edu/CSE442-542/2019-Summer/cse-442b/checkStudentCode.php (6) Since there is no UI associated with this task, use a tool that can set POST data (ie Postman) to call the script. (7) Call the url using the data {code: H5ZOI3LxVL2UhiHTBrKueCQFi/K3CEPV} (use your own code, these expire every 15 minutes). You should have a string value returned with the success of the code being accepted.