Skip to main content
All CollectionsHackEDU Lesson HelpSecure Password Storage Help
Register/Login Functionality Is Broken (Secure Password Storage Part 3)
Register/Login Functionality Is Broken (Secure Password Storage Part 3)
Jared Bautista avatar
Written by Jared Bautista
Updated over 2 years 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 you are calling the Argon2 verify function correctly. See the Remediation step for examples on how to call the verify function.

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?