Skip to content

Commit

Permalink
fix: saml endpoint crash (beego#773)
Browse files Browse the repository at this point in the history
Signed-off-by: Yixiang Zhao <[email protected]>
  • Loading branch information
seriouszyx authored May 31, 2022
1 parent 42c2210 commit b85ad89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (c *ApiController) GetSamlMeta() {
application := object.GetApplication(paramApp)
if application == nil {
c.ResponseError(fmt.Sprintf("err: application %s not found", paramApp))
return
}
metadata, _ := object.GetSamlMeta(application, host)
c.Data["xml"] = metadata
Expand Down

0 comments on commit b85ad89

Please sign in to comment.