All Collections
HackEDU Lesson Help
Secure Password Storage Help
Register/Login Functionality Is Broken (Secure Password Storage Part 1 and Part 2)
Register/Login Functionality Is Broken (Secure Password Storage Part 1 and Part 2)
Jared Bautista avatar
Written by Jared Bautista
Updated over a week ago

Issue:

The normal registration and/or login functionality is broken.

Test 1:

Register a new user with the username testuser and password 1234 (you may choose any desired values for the company field). Did any errors appear in the Sandbox Output window?

Test 2:

Switch to the User Registry tab and select the Refresh Users button. Verify that the new testuser appears in the table. If testuser is not present in the table, examine your register function for bugs. Ensure the SQL INSERT statement is correct and the correct variables are being substituted in the parameterized query.

Test 3

Switch back to the Issue Tracker tab and login using the username testuser and password 1234. If you see “Error: Wrong username or password,” examine your login function for bugs. Ensure the SQL SELECT statement is correct and the correct variables are being substituted in the parameterized query. Also verify that there are no errors in the Sandbox Output window.

Did this answer your question?