mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Improve response message.
This commit is contained in:
@ -93,7 +93,7 @@ func getObject(ctx *context.Context) (string, string) {
|
||||
func denyRequest(ctx *context.Context) {
|
||||
w := ctx.ResponseWriter
|
||||
w.WriteHeader(403)
|
||||
resp := &controllers.Response{Status: "error", Msg: "unauthorized operation"}
|
||||
resp := &controllers.Response{Status: "error", Msg: "Unauthorized operation"}
|
||||
_, err := w.Write([]byte(util.StructToJson(resp)))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user