mirror of
https://github.com/pushbits/server.git
synced 2025-06-13 16:12:01 +02:00
Add nilaway and rework test setup
This commit is contained in:
parent
e657884326
commit
b0699da1e9
15 changed files with 309 additions and 184 deletions
|
@ -33,6 +33,9 @@ func IsPasswordPwned(password string) (bool, error) {
|
|||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
if resp == nil {
|
||||
return false, fmt.Errorf("received nil response from http request")
|
||||
}
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
log.L.Fatalf("Request failed with HTTP %s.", resp.Status)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue