Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(auth) check for password length of 0 #75

Closed
wants to merge 2 commits into from

Conversation

SlyW
Copy link
Contributor

@SlyW SlyW commented Sep 5, 2016

[x] commit message named according to Contributing Guide
[x] npm run codestyle is OK
[x] npm test is OK

Check for a non-zero length password before making the call to criton for hash verification.

If the user attempts to login in when authorization is enabled and fails to supply a password, the headers don't get properly cleared (in Chrome) leading to an unescapable loop even when stopping and restarting the service.

Found myself in a vicious loop if I failed to type in a password when prompted in Chrome. Every refresh of the page would fall into the criton check with a blank password. Seems Chrome wouldn't clear the headers until I closed the browser and/or switched to a new incognito tab. Probably a user error, but still, this avoided the criton throw.
@GitCop
Copy link

GitCop commented Sep 5, 2016

There were the following issues with your Pull Request

  • Commit: 5b9f398
    • Your commit message body contains a line that is longer than 80 characters
    • Commits must be in the following format: %{type}(%{scope}) %{description}
  • Commit: 57ea397
    • Commits must be in the following format: %{type}(%{scope}) %{description}
    • Invalid type. Valid types are fix, docs, refactor, test, chore, feature

Guidelines are available at https://github.com/coderaiser/cloudcmd/blob/master/CONTRIBUTING.md


This message was auto-generated by https://gitcop.com

@coderaiser
Copy link
Owner

Thank you, merged as eceb0ac.

@coderaiser coderaiser closed this Sep 6, 2016
@coderaiser coderaiser added the fix label Sep 6, 2016
@coderaiser
Copy link
Owner

Landed in v5.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants