From cd1fa849fb161d3bbc7c582aa2787315a1037db1 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Wed, 19 Jul 2023 20:12:36 +0200 Subject: fix: Fix path not storing properly Also, initial user is now created as admin. --- pkg/service/auth.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/service/auth.go') diff --git a/pkg/service/auth.go b/pkg/service/auth.go index 4358a8a..761c70b 100644 --- a/pkg/service/auth.go +++ b/pkg/service/auth.go @@ -69,6 +69,7 @@ func (c *AuthController) InitialRegister(ctx context.Context, username, password _, err = c.userRepository.Create(ctx, &repository.CreateUser{ Username: string(username), Password: hash, + IsAdmin: true, Path: string(path), }) -- cgit v1.2.3