-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
src/server/handler_user_test.go
Outdated
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug message?
src/server/core/authenticate.go
Outdated
SecretKey = "linkernetworks" | ||
) | ||
|
||
func Authenticate(session *mongo.Session, credential entity.LoginCredential) (entity.User, bool, error) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
2d6c3a6
to
5c43647
Compare
683d8ca
to
c5030f4
Compare
c5030f4
to
2ec1fa2
Compare
No description provided.