Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mathew-jose
Copy link
Collaborator

Description

Pull request to fix #55. An incorrect login attempt will now result in a response of 401.

Testing

Tested with incorrect email ID and an incorrect password and verified the return status code.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged
  • I have documented any changes if required in the docs.

@mathew-jose mathew-jose changed the title Login exception Incorrect Login Credentials Unhandled Exception May 27, 2022
Copy link
Collaborator

@piyushroshan piyushroshan May 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Along with try catch we should also add an if block for the null scenario of JWT token.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if block checking for the null condition of the JWT token is part of the try block.

Copy link
Collaborator

@piyushroshan piyushroshan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add unit test for this

@piyushroshan piyushroshan linked an issue May 28, 2022 that may be closed by this pull request
@piyushroshan piyushroshan added bug Something isn't working and removed bug Something isn't working labels May 28, 2022
@piyushroshan piyushroshan merged commit 7b4b0a9 into OWASP:develop May 28, 2022
piyushroshan added a commit that referenced this pull request Jan 19, 2026
Incorrect Login Credentials Unhandled Exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Faliure to login results in an unhandled exception

3 participants