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

[Task] VX-222 Johnlin/user jwt auth #183

Merged
merged 1 commit into from
Jul 30, 2018
Merged

Conversation

John-Lin
Copy link
Contributor

No description provided.

defer suite.session.Remove(entity.UserCollectionName, "email", u.Email)
err := suite.session.Insert(entity.UserCollectionName, &u)
suite.NoError(err)
fmt.Printf("XXXXX Insert %s\n", u.LoginCredential.Email)
Copy link
Contributor

Choose a reason for hiding this comment

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

debug message?

SecretKey = "linkernetworks"
)

func Authenticate(session *mongo.Session, credential entity.LoginCredential) (entity.User, bool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add comment to fit golint?
What do you think?
Thank you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks good

@codecov-io
Copy link

codecov-io commented Jul 26, 2018

Codecov Report

Merging #183 into develop will decrease coverage by 0.2%.
The diff coverage is 67.74%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #183      +/-   ##
===========================================
- Coverage    78.71%   78.51%   -0.21%     
===========================================
  Files           45       48       +3     
  Lines         2218     2299      +81     
===========================================
+ Hits          1746     1805      +59     
- Misses         365      379      +14     
- Partials       107      115       +8
Impacted Files Coverage Δ
src/server/route_filter.go 0% <0%> (ø) ⬆️
src/server/route.go 83.13% <100%> (+6.12%) ⬆️
src/server/backend/password.go 100% <100%> (ø)
src/server/backend/jwt.go 100% <100%> (ø)
src/server/handler_user.go 71.76% <62.31%> (-7.49%) ⬇️
src/server/backend/authenticate.go 83.33% <83.33%> (ø)
src/server/backend/network.go 0% <0%> (ø)
src/server/backend/pod.go 0% <0%> (ø)
... and 1 more

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 1d348b7...2ec1fa2. Read the comment docs.

@John-Lin John-Lin force-pushed the johnlin/user-jwt-auth branch from 2d6c3a6 to 5c43647 Compare July 26, 2018 09:28
@John-Lin John-Lin force-pushed the johnlin/user-jwt-auth branch 4 times, most recently from 683d8ca to c5030f4 Compare July 30, 2018 03:33
@John-Lin John-Lin force-pushed the johnlin/user-jwt-auth branch from c5030f4 to 2ec1fa2 Compare July 30, 2018 03:43
@John-Lin John-Lin merged commit b0093fa into develop Jul 30, 2018
@hwchiu hwchiu deleted the johnlin/user-jwt-auth branch July 30, 2018 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants