Add more CLI commands
This commit is contained in:
parent
475d424f32
commit
8ceafff09b
21 changed files with 995 additions and 107 deletions
|
|
@ -115,7 +115,7 @@ func (a *Authenticator) AuthenticateUser(ctx context.Context, info params.Passwo
|
|||
user, err := a.store.GetUser(ctx, info.Username)
|
||||
|
||||
if err != nil {
|
||||
if err == runnerErrors.ErrNotFound {
|
||||
if errors.Is(err, runnerErrors.ErrNotFound) {
|
||||
return ctx, runnerErrors.ErrUnauthorized
|
||||
}
|
||||
return ctx, errors.Wrap(err, "authenticating")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue