There was an error while loading. Please reload this page.
1 parent 1f9382c commit 89ccfc7Copy full SHA for 89ccfc7
2 files changed
api/session.go
@@ -54,6 +54,10 @@ type SessionAPI struct {
54
// description: Unauthorized
55
// schema:
56
// $ref: "#/definitions/Error"
57
+// 403:
58
+// description: Forbidden
59
+// schema:
60
+// $ref: "#/definitions/Error"
61
func (a *SessionAPI) Login(ctx *gin.Context) {
62
if !a.LocalAuthEnabled {
63
ctx.AbortWithError(403, errors.New("local authentication is disabled"))
docs/spec.json
@@ -720,6 +720,12 @@
720
"schema": {
721
"$ref": "#/definitions/Error"
722
}
723
+ },
724
+ "403": {
725
+ "description": "Forbidden",
726
+ "schema": {
727
+ "$ref": "#/definitions/Error"
728
+ }
729
730
731
@@ -3539,4 +3545,4 @@
3539
3545
"in": "query"
3540
3546
3541
3547
3542
-}
3548
+}
0 commit comments