Load users from the database during startup

This commit is contained in:
Gary Kramlich
2022-01-05 14:59:35 -06:00
parent aa7059b1e3
commit de1f524e25
5 changed files with 60 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ func (l *loginCmd) Run(g *globals) error {
return err
}
if err := g.user.login(user.Token); err != nil {
if err := g.user.Login(user.Token); err != nil {
fmt.Println(g.context.Stdout, "failed to login", err)
return err