-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
test: limit one user(not admin) session for one application by casdoor #43
base: master
Are you sure you want to change the base?
Conversation
@tangyang9464 @JalinWang @imp2002 please review |
controllers/session.go
Outdated
SessionId []string `json:"sessionId"` | ||
} | ||
|
||
func addUserSession(claims *auth.Claims, sessionId string) { |
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.
Put all code to: https://github.com/casdoor/casdoor-go-sdk , re-use the existing code base
"github.com/casdoor/casdoor-go-sdk/auth" | ||
) | ||
|
||
var sessionMap = map[string]int64{} | ||
type Session struct { |
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.
Most of code should be put into casdoor-go-sdk
casdoor/casdoor#774 (comment)