diff --git a/api/user/auth.go b/api/user/auth.go index d521d16e..2d728b02 100644 --- a/api/user/auth.go +++ b/api/user/auth.go @@ -4,6 +4,7 @@ import ( "github.com/0xJacky/Nginx-UI/api" "github.com/0xJacky/Nginx-UI/model" "net/http" + "time" "github.com/gin-gonic/gin" "golang.org/x/crypto/bcrypt" @@ -29,6 +30,7 @@ func Login(c *gin.Context) { u, _ := model.GetUser(user.Name) if err := bcrypt.CompareHashAndPassword([]byte(u.Password), []byte(user.Password)); err != nil { + time.Sleep(5 * time.Second) c.JSON(http.StatusForbidden, gin.H{ "message": "The username or password is incorrect", }) diff --git a/app/src/components/Chart/RadialBarChart.vue b/app/src/components/Chart/RadialBarChart.vue index 9dee0a95..d5374af3 100644 --- a/app/src/components/Chart/RadialBarChart.vue +++ b/app/src/components/Chart/RadialBarChart.vue @@ -1,25 +1,28 @@