mirror of
https://github.com/pushbits/server.git
synced 2025-07-26 12:58:03 +02:00
Make hashing parameters configurable
This commit is contained in:
parent
c0ac5c3d16
commit
ba0306f384
8 changed files with 86 additions and 37 deletions
5
app.go
5
app.go
|
@ -6,6 +6,7 @@ import (
|
|||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/eikendev/pushbits/authentication/credentials"
|
||||
"github.com/eikendev/pushbits/configuration"
|
||||
"github.com/eikendev/pushbits/database"
|
||||
"github.com/eikendev/pushbits/dispatcher"
|
||||
|
@ -30,7 +31,9 @@ func main() {
|
|||
|
||||
c := configuration.Get()
|
||||
|
||||
db, err := database.Create(c.Database.Dialect, c.Database.Connection)
|
||||
cm := credentials.CreateManager(c.Crypto)
|
||||
|
||||
db, err := database.Create(cm, c.Database.Dialect, c.Database.Connection)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue