Skip to content

Commit

Permalink
fix(login): allow people to login with gsuite_id (#201)
Browse files Browse the repository at this point in the history
So they can use their username, their email and their gsuite_id
  • Loading branch information
WikiRik authored Dec 14, 2020
1 parent c430336 commit 10229a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion middlewares/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module.exports.login = async (req, res) => {
where: {
[Sequelize.Op.or]: {
email: { [Sequelize.Op.iLike]: username },
username: { [Sequelize.Op.iLike]: username }
username: { [Sequelize.Op.iLike]: username },
gsuite_id: { [Sequelize.Op.iLike]: username }
}
}
});
Expand Down

0 comments on commit 10229a7

Please sign in to comment.