mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
Make post_logout_redirect_uri optional for logout
This commit is contained in:
@ -290,10 +290,11 @@ func (c *ApiController) Logout() {
|
|||||||
c.ResponseOk(user, application.HomepageUrl)
|
c.ResponseOk(user, application.HomepageUrl)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if redirectUri == "" {
|
// "post_logout_redirect_uri" has been made optional, see: https://github.com/casdoor/casdoor/issues/2151
|
||||||
c.ResponseError(c.T("general:Missing parameter") + ": post_logout_redirect_uri")
|
// if redirectUri == "" {
|
||||||
return
|
// c.ResponseError(c.T("general:Missing parameter") + ": post_logout_redirect_uri")
|
||||||
}
|
// return
|
||||||
|
// }
|
||||||
if accessToken == "" {
|
if accessToken == "" {
|
||||||
c.ResponseError(c.T("general:Missing parameter") + ": id_token_hint")
|
c.ResponseError(c.T("general:Missing parameter") + ": id_token_hint")
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user