Commit a3c84df4 authored by ale's avatar ale

Fix previous commit (strings are not errors)

parent 43bb0f7c
Pipeline #8254 passed with stages
in 1 minute and 28 seconds
......@@ -4,6 +4,7 @@ import (
"context"
"crypto/rand"
"encoding/base64"
"errors"
"fmt"
"github.com/pquerna/otp/totp"
......@@ -77,7 +78,7 @@ func (r *RequestBase) PopulateContext(rctx *RequestContext) error {
rctx.Comment = r.Comment
if r.SSO == "" {
return newAuthError("no SSO credentials provided")
return newAuthError(errors.New("no SSO credentials provided"))
}
var err error
rctx.Auth, err = rctx.authFromSSO(r.SSO)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment