fix first critical issiue

This commit is contained in:
2026-03-27 16:06:23 +01:00
parent a6a19dad6e
commit a95bc43be6
4 changed files with 134 additions and 16 deletions
+2
View File
@@ -113,6 +113,8 @@ func HttpHandleLogin(response http.ResponseWriter, request *http.Request) {
client, err = CacheGetClientByName(username)
if err != nil {
client = &Client{Name: username}
err := DbSetClientByName(ctx, client)
if err != nil {
http.Error(response, "bad login", http.StatusUnauthorized)