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

Implement Sequelize#authenticate #29

Merged
merged 1 commit into from
Sep 5, 2017
Merged

Implement Sequelize#authenticate #29

merged 1 commit into from
Sep 5, 2017

Conversation

vFederer
Copy link
Contributor

@vFederer vFederer commented Sep 3, 2017

This pull request implements Sequelize#authenticate for issue #4 .

Any suggestions on how to implement the 'Invalid credentials' error?

Copy link
Contributor

@LoveAndCoding LoveAndCoding left a comment

Choose a reason for hiding this comment

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

Looks simple enough for a first pass implementation.

* @return {Promise}
*/
Sequelize.prototype.authenticate = function() {
return new bluebird(function (resolve) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not important, but it's probably cleaner to just use bluebird.resolve() here.

@LoveAndCoding
Copy link
Contributor

Thanks for your PR! Always great to see people contributing to this project.

This looks like a good first pass for this functionality. I'll merge this in for now. It is likely to get redone at some point as part of the bigger initiative for issue #2 but that's probably still a little ways out. So this works as a good interim for this.

@LoveAndCoding LoveAndCoding merged commit 07a11c3 into BlinkUX:master Sep 5, 2017
@vFederer vFederer deleted the feature-authenticate branch September 10, 2017 12:55
@vFederer
Copy link
Contributor Author

I`m glad i could help.

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

Successfully merging this pull request may close these issues.

None yet

2 participants