mirror of
https://github.com/pushbits/server.git
synced 2025-08-03 08:39:09 +02:00
Update to Go 1.19
This commit is contained in:
parent
21a4d156e1
commit
2ddc0fbd74
12 changed files with 85 additions and 43 deletions
|
@ -3,7 +3,7 @@ package credentials
|
|||
import (
|
||||
"crypto/sha1" //#nosec G505 -- False positive, see the use below.
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
|
@ -40,7 +40,7 @@ func IsPasswordPwned(password string) (bool, error) {
|
|||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
bodyText, err := ioutil.ReadAll(resp.Body)
|
||||
bodyText, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
log.L.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue