Skip to content

Commit

Permalink
Use go-hibp v1.0.0 for #30
Browse files Browse the repository at this point in the history
  • Loading branch information
wneessen committed Sep 22, 2021
1 parent 2087a4b commit 27d05f4
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 17 deletions.
7 changes: 1 addition & 6 deletions .idea/apg-go.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 53 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cmd/apg/apg.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/wneessen/apg-go/config"
"github.com/wneessen/apg-go/random"
"github.com/wneessen/apg-go/spelling"
hibp "github.com/wneessen/go-hibp"
"github.com/wneessen/go-hibp"
"log"
"os"
"time"
Expand Down Expand Up @@ -86,7 +86,7 @@ func main() {

if cfgObj.CheckHibp {
hc := hibp.New(hibp.WithHttpTimeout(time.Second * 2))
pwnObj, _, err := hc.PwnedPassword.CheckPassword(pwString)
pwnObj, _, err := hc.PwnedPassApi.CheckPassword(pwString)
if err != nil {
log.Printf("unable to check HIBP database: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/wneessen/apg-go

go 1.16

require github.com/wneessen/go-hibp v0.1.1
require github.com/wneessen/go-hibp v1.0.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/wneessen/go-hibp v0.1.1 h1:tq/bLNqGIns3r2b1dAT7PcVdYRsF70qBTs7tQh6sfRo=
github.com/wneessen/go-hibp v0.1.1/go.mod h1:Ldg6DQg4fMCveVKgL+RL9Jy+9TsljjAP704Ix8X3jOw=
github.com/wneessen/go-hibp v1.0.0 h1:XmjymVwdhH06TVzU/ahlYzwAhX3OgxoxvyJ3HPa8gks=
github.com/wneessen/go-hibp v1.0.0/go.mod h1:Ldg6DQg4fMCveVKgL+RL9Jy+9TsljjAP704Ix8X3jOw=

0 comments on commit 27d05f4

Please sign in to comment.