Not deleting users

This commit is contained in:
2023-09-09 01:45:47 +03:00
parent e1319a951d
commit 635f27f5ed
4 changed files with 15 additions and 14 deletions

View File

@ -6,9 +6,9 @@ import (
"image"
"image/color"
"image/png"
"io/ioutil"
"log"
"math/rand"
"os"
"strings"
"github.com/fogleman/gg"
@ -104,7 +104,7 @@ func (captcha *Captcha) ToBytes() (*[]byte, error) {
// Логотипы читаются из папки /assets рядом с исполняемым файлом.
// Принимается формат .png, логотип, представляющий правильный ответ называется godot.png
func Init() error {
files, err := ioutil.ReadDir("./assets")
files, err := os.ReadDir("./assets")
if err != nil {
return err
}