add generate and hash password

This commit is contained in:
2026-06-29 13:26:57 +07:00
parent 18fad25b27
commit 7806061313
5 changed files with 66 additions and 10 deletions
+3 -1
View File
@@ -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")