fix first critical issiue
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user