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)