fix: radial bar chart style broken in 1.3k-1.7k px window

This commit is contained in:
Jacky 2024-06-24 23:37:59 +08:00
parent 6f349aa12a
commit 7d5104e550
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
4 changed files with 31 additions and 24 deletions

View file

@ -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",
})