mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-12 01:32:03 +00:00
fix: ensure user context has is logged in set to true
This commit is contained in:
@@ -115,6 +115,11 @@ func (controller *OIDCController) Authorize(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if !userContext.IsLoggedIn {
|
||||
controller.authorizeError(c, errors.New("err user not logged in"), "User not logged in", "The user is not logged in", "", "", "")
|
||||
return
|
||||
}
|
||||
|
||||
var req service.AuthorizeRequest
|
||||
|
||||
err = c.BindJSON(&req)
|
||||
|
||||
Reference in New Issue
Block a user