mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-30 14:12:37 +02:00
Merge branch 'main' into oidc-refactoring
This commit is contained in:
2
oidc.go
2
oidc.go
@@ -551,7 +551,7 @@ func (h *Headscale) findOrCreateNewNamespaceForOIDCCallback(
|
||||
namespaceName string,
|
||||
) (*Namespace, error) {
|
||||
namespace, err := h.GetNamespace(namespaceName)
|
||||
if errors.Is(err, errNamespaceNotFound) {
|
||||
if errors.Is(err, ErrNamespaceNotFound) {
|
||||
namespace, err = h.CreateNamespace(namespaceName)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user