mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Make sure we force at least one of auth methods
This commit is contained in:
parent
706133bd7b
commit
db391d96c5
@ -49,6 +49,15 @@ class StepService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$auth = collect($dependencies)
|
||||||
|
->filter(fn ($dependency) => str_starts_with($dependency['id'], 'auth.'))
|
||||||
|
->keys()
|
||||||
|
->toArray();
|
||||||
|
|
||||||
|
if (count(array_intersect($auth, $steps)) === 0) {
|
||||||
|
$errors[] = ctrans('texts.step_authentication_fail');
|
||||||
|
}
|
||||||
|
|
||||||
return $errors;
|
return $errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user