Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cw789 committed Jul 13, 2018
1 parent 5b0c501 commit c83252b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grant-types/password.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default function({
return userModel.findOne({ where: { [usernameField]: username } }).then(async (user) => {
if (!user) return Promise.reject(new HTTPError(OAUTH_INVALID_CREDENTIALS));

const match = await bcrypt.compare(password, user[passwordField])
if (!match) return Promise.reject(new HTTPError(OAUTH_INVALID_PASSWORD))
const match = await bcrypt.compare(password, user[passwordField]);
if (!match) return Promise.reject(new HTTPError(OAUTH_INVALID_PASSWORD));

const accessToken = tokenModel.create({
type: TOKEN_TYPE_ACCESS,
Expand Down

0 comments on commit c83252b

Please sign in to comment.