generated from VLADIMIR/template
add generate and hash password
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
_ "embed"
|
||||
"evening_detective_server/internal/app"
|
||||
"evening_detective_server/internal/modules/password_generator"
|
||||
"evening_detective_server/internal/repos/users_repo"
|
||||
"evening_detective_server/internal/services/users_service"
|
||||
proto "evening_detective_server/proto"
|
||||
@@ -41,7 +42,8 @@ func main() {
|
||||
}
|
||||
|
||||
usersRepo := users_repo.NewUserRepo(dbpool)
|
||||
usersService := users_service.NewUsersService(usersRepo)
|
||||
passwordGenerator := password_generator.NewGenerator(8)
|
||||
usersService := users_service.NewUsersService(usersRepo, passwordGenerator)
|
||||
|
||||
// Create a listener on TCP port
|
||||
lis, err := net.Listen("tcp", ":8080")
|
||||
|
||||
Reference in New Issue
Block a user