This commit is contained in:
wanlop run 2024-01-08 18:08:06 +07:00
parent 3698e6e3c0
commit 1245b476c1
5 changed files with 68 additions and 54 deletions

@ -1 +0,0 @@
Subproject commit 9fc8791818e56cc8bd9065beed223ec96844f146

1
server/cofffeemachineConfig Symbolic link
View file

@ -0,0 +1 @@
/Users/wanloprungsiyangkul/project/cofffeemachineConfig

Binary file not shown.

View file

@ -115,7 +115,7 @@ func (s *Server) createHandler() {
// Seed
_ = userService.CreateNewUser(context.WithValue(context.Background(), "user", &models.User{Email: "system"}), "kenta420", "poomipat.c@forth.co.th", "", permissions.SuperAdmin)
_ = userService.CreateNewUser(context.WithValue(context.Background(), "user", &models.User{Email: "system"}), "phu", "pakin.t@forth.co.th", "", permissions.SuperAdmin)
_ = userService.CreateNewUser(context.WithValue(context.Background(), "user", &models.User{Email: "system"}), "wanlop", "wanlop.r@forth.co.th", "", permissions.SuperAdmin)
// Auth Router
r.Group(func(r chi.Router) {
ar := routers.NewAuthRouter(s.cfg, s.oauth, userService, s.taoLogger)