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(login): allow people to login with gsuite_id #201

Merged
merged 1 commit into from
Dec 14, 2020
Merged

Conversation

WikiRik
Copy link
Member

@WikiRik WikiRik commented Dec 14, 2020

So they can use their username, their email and their gsuite_id

So they can use their username, their email and their gsuite_id
@WikiRik WikiRik requested a review from a team December 14, 2020 13:21
@codecov
Copy link

codecov bot commented Dec 14, 2020

Codecov Report

Merging #201 (b3642fe) into master (c430336) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #201   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           42        42           
  Lines         1329      1329           
  Branches       207       207           
=========================================
  Hits          1329      1329           
Impacted Files Coverage Δ
middlewares/login.js 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c430336...b3642fe. Read the comment docs.

@@ -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 },
Copy link
Member

Choose a reason for hiding this comment

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

there's a bug on frontend that only allows you to log in via email, and because of this you actually cannot login with username, fyi

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yes, since it requires an @ in the login field. But you can still use the username when logging in to OMS JC or Wiki

Copy link
Member

@serge1peshcoff serge1peshcoff left a comment

Choose a reason for hiding this comment

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

lgtm

@WikiRik WikiRik merged commit 10229a7 into master Dec 14, 2020
serge1peshcoff pushed a commit that referenced this pull request Dec 14, 2020
## [1.31.2](1.31.1...1.31.2) (2020-12-14)

### Bug Fixes

* **login:** allow people to login with gsuite_id ([#201](#201)) ([10229a7](10229a7))
@serge1peshcoff
Copy link
Member

🎉 This PR is included in version 1.31.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@WikiRik WikiRik deleted the gsuite-login branch February 10, 2021 12:25
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.

2 participants