~emersion/sinwon

278a2a33905f6ce4c626158120d518b51c5a66b9 — Simon Ser 7 months ago aa68412
Fix root user missing admin flag
1 files changed, 1 insertions(+), 1 deletions(-)

M db.go
M db.go => db.go +1 -1
@@ 47,7 47,7 @@ func (db *DB) init(ctx context.Context) error {
	}

	// TODO: drop this
	defaultUser := User{Username: "root"}
	defaultUser := User{Username: "root", Admin: true}
	if err := defaultUser.SetPassword("root"); err != nil {
		return err
	}