add logic for login register

This commit is contained in:
2026-03-22 20:06:59 +01:00
parent d756023952
commit 9693e9ee88
2 changed files with 30 additions and 8 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func DbSaveClientWithoutGroups(ctx context.Context, client *Client) error {
return err
}
func DbGetClientByName(ctx context.Context, client *Client) error {
func DbSetClientByName(ctx context.Context, client *Client) error {
err := dbConn.QueryRow(ctx, `
SELECT name, pass_hash, color_red, color_green, color_blue, created_at FROM clients WHERE name = $1
`, client.Name).Scan(&client.Name, &client.PasswordHash, client.Pronouns, client.Color[0], client.Color[1], client.Color[2], client.CreatedAt)