Update wording for user not found to indicate the auth method isn't primary for the scope
This commit is contained in:
1 parent
dc881e65d4
commit
c57841fa2e
1 file changed
+1
-1
@@ -244,7 +244,7 @@ func (r *Repository) LookupUserWithLogin(ctx context.Context, accountId string,
|
||||
return nil, errors.Wrap(err, op)
|
||||
}
|
||||
if !allowed {
|
||||
return nil, errors.New(errors.RecordNotFound, op, fmt.Sprintf("user not found for account %s", accountId))
|
||||
return nil, errors.New(errors.RecordNotFound, op, fmt.Sprintf("user not found for account %s and auth method is not primary for the scope so refusing to auto-create user", accountId))
|
||||
}
|
||||
|
||||
metadata := oplog.Metadata{
|
||||
|
||||
Reference in new issue
Block a user