From 1ea258aebfd71203992c199e545224eb379b6874 Mon Sep 17 00:00:00 2001 From: ParkSuMin Date: Wed, 29 Jan 2025 09:24:46 +0100 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20not=5Fsorted/register.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- not_sorted/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/not_sorted/register.go b/not_sorted/register.go index f8ffd2bc..23a48509 100644 --- a/not_sorted/register.go +++ b/not_sorted/register.go @@ -50,7 +50,7 @@ func main() { } check_auth := fmt.Sprintf("SELECT ID, login WHERE login=%s", input.Login) - is_exist := db.Exec(check_auth) + is_exist := db.Insert_Data(check_auth) if is_exist{ pswd := HashPassword(input.Password) formatted := fmt.Sprintf("INSERT INTO users (login, hash_password) VALUES (%s, %s)", input.Login, pswd)