aboutsummaryrefslogtreecommitdiff
path: root/pkg/database/sql
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 20:12:36 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-07-19 20:13:55 +0200
commitcd1fa849fb161d3bbc7c582aa2787315a1037db1 (patch)
tree970b883fed895ea6a217e4f7d50e3a3a3a02e7d5 /pkg/database/sql
parente359eaaebd7270476075ca9e08b7b53fb9e69f24 (diff)
downloadlens-cd1fa849fb161d3bbc7c582aa2787315a1037db1.tar.gz
lens-cd1fa849fb161d3bbc7c582aa2787315a1037db1.tar.bz2
lens-cd1fa849fb161d3bbc7c582aa2787315a1037db1.zip
fix: Fix path not storing properly
Also, initial user is now created as admin.
Diffstat (limited to 'pkg/database/sql')
-rw-r--r--pkg/database/sql/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/database/sql/user.go b/pkg/database/sql/user.go
index 11718be..15dbe72 100644
--- a/pkg/database/sql/user.go
+++ b/pkg/database/sql/user.go
@@ -140,6 +140,7 @@ func (self *UserRepository) Create(ctx context.Context, createUser *repository.C
user := &User{
Username: createUser.Username,
Name: createUser.Name,
+ Path: createUser.Path,
Password: string(createUser.Password),
}