Added current password checker on the password reset page. #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE
Some further issues were discovered while working on the #120 issue. Namely, the error messages displayed for the current password input box where associated and caused by invalid input for the new password field. This bug was resolved and detailed changes can be seen in #128
Changes covered in this Pull Request
Current password checker has been added when the user tries to change their password. The user must now enter the current password to be able to change their password. The functionality and UI change is ready for review.
UI Changes
A new input box has been added to the form to change the user's password. This box is for entering the user's current password that will be checked before it can be reset.
Functional Changes
A changePassword method has been added to the password component and runs when the user tries to update their password. This method uses the login services login method to verify that the user has input the correct current password. The updated password will only be stored if the current password has been verified. Otherwise, an error message will appear.
Testing
UI Changes
Indicated in red rectangle