mirror of
https://github.com/pushbits/server.git
synced 2025-06-01 18:22:02 +02:00
Implement changing of passwords
This commit is contained in:
parent
d621333b6e
commit
e1cd2d2f8e
7 changed files with 46 additions and 22 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
|
||||
"github.com/eikendev/pushbits/api"
|
||||
"github.com/eikendev/pushbits/authentication"
|
||||
"github.com/eikendev/pushbits/authentication/credentials"
|
||||
"github.com/eikendev/pushbits/database"
|
||||
"github.com/eikendev/pushbits/dispatcher"
|
||||
|
||||
|
@ -13,7 +14,7 @@ import (
|
|||
)
|
||||
|
||||
// Create a Gin engine and setup all routes.
|
||||
func Create(debug bool, db *database.Database, dp *dispatcher.Dispatcher) *gin.Engine {
|
||||
func Create(debug bool, cm *credentials.Manager, db *database.Database, dp *dispatcher.Dispatcher) *gin.Engine {
|
||||
log.Println("Setting up HTTP routes.")
|
||||
|
||||
if !debug {
|
||||
|
@ -22,9 +23,9 @@ func Create(debug bool, db *database.Database, dp *dispatcher.Dispatcher) *gin.E
|
|||
|
||||
auth := authentication.Authenticator{DB: db}
|
||||
|
||||
applicationHandler := api.ApplicationHandler{DB: db, Dispatcher: dp}
|
||||
notificationHandler := api.NotificationHandler{DB: db, Dispatcher: dp}
|
||||
userHandler := api.UserHandler{DB: db, Dispatcher: dp}
|
||||
applicationHandler := api.ApplicationHandler{DB: db, DP: dp}
|
||||
notificationHandler := api.NotificationHandler{DB: db, DP: dp}
|
||||
userHandler := api.UserHandler{CM: cm, DB: db, DP: dp}
|
||||
|
||||
r := gin.Default()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue