mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
Refactored nginx configuration editor
This commit is contained in:
parent
f526cd0ade
commit
b19ecdda9c
31 changed files with 1476 additions and 956 deletions
|
@ -34,7 +34,7 @@ func authRequired() gin.HandlerFunc {
|
|||
token = string(tmp)
|
||||
if token == "" {
|
||||
c.JSON(http.StatusForbidden, gin.H{
|
||||
"message": "auth fail",
|
||||
"message": "Authorization failed",
|
||||
})
|
||||
c.Abort()
|
||||
return
|
||||
|
@ -45,7 +45,7 @@ func authRequired() gin.HandlerFunc {
|
|||
|
||||
if n < 1 {
|
||||
c.JSON(http.StatusForbidden, gin.H{
|
||||
"message": "auth fail",
|
||||
"message": "Authorization failed",
|
||||
})
|
||||
c.Abort()
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue