Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

bAdCAsE error - #522

Merged
dannycoates merged 1 commit into
mozilla:masterfrom
dannycoates:bAdCAsE
Jan 24, 2014
Merged

bAdCAsE error#522
dannycoates merged 1 commit into
mozilla:masterfrom
dannycoates:bAdCAsE

Conversation

@dannycoates

Copy link
Copy Markdown
Contributor

This splits the old Incorrect password error to add a separate error for Incorrect email case. When the auth fails and the request email doesn't match the database's case it will return this new error.

The new errno is 120 with status code 400.

r? @rfk @chilts

cc @ncalexan

I'm lazy and did this on top of #521 so lets please review/merge that one first.

Comment thread docs/api.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"an email parameter"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

does the article bind to "email" or "parameter" when email is back-ticked? English is hard. 🎲

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

indeed; forget the grammar, ship it!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"a parameter by the name of email..." :-P

@rfk

rfk commented Jan 24, 2014

Copy link
Copy Markdown
Contributor

It seems a bit weird to have errors.incorrectPassword return something other than an "incorrect password" error, but it does avoid duplicating the check across all the routes, so makes sense I guess. r+ let's get it out there.

@dannycoates

Copy link
Copy Markdown
Contributor Author

It seems a bit weird to have errors.incorrectPassword return something other than an "incorrect password"

we could change the function name to dudeWTF

dannycoates added a commit that referenced this pull request Jan 24, 2014
@dannycoates
dannycoates merged commit 47ba8bc into mozilla:master Jan 24, 2014
@dannycoates
dannycoates deleted the bAdCAsE branch May 13, 2015 00:02
rfk pushed a commit that referenced this pull request Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants