Обновить not_sorted/register.go
This commit is contained in:
1 parent
518942bcec
commit
1ea258aebf
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user