From 5b5a2a06509223ee7c3273272b8b76a4962e86fc Mon Sep 17 00:00:00 2001 From: a0eoc <42794343+a0eoc@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:19:24 +0500 Subject: [PATCH 1/2] fix(db): hash proper passwords in test setup --- modules/database/init/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/database/init/init.go b/modules/database/init/init.go index 8065b8b4..a5ca69a5 100644 --- a/modules/database/init/init.go +++ b/modules/database/init/init.go @@ -169,7 +169,7 @@ func seed() { defer log.Info.Println("Finished seeding mock data.") pw := func(s string) string { - s, err := util.HashPassword("admin123") + s, err := util.HashPassword(s) if err != nil { log.Warn.Fatal(err) } From 9940e113ef1b86efc20c45b6f06ab2ae986c1f08 Mon Sep 17 00:00:00 2001 From: a0eoc <42794343+a0eoc@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:19:35 +0500 Subject: [PATCH 2/2] fix(ui): display Dashboard link to mods --- web/views/partials/sidebar.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/views/partials/sidebar.tmpl b/web/views/partials/sidebar.tmpl index d3d16f0a..867acd9a 100644 --- a/web/views/partials/sidebar.tmpl +++ b/web/views/partials/sidebar.tmpl @@ -27,8 +27,10 @@ {{ if .User }}