Hi,
with the Geoblocker App I want to block login attempts from defined countries.
I could imagine that this could work (this example is blocking all login attempts):
$callback_post_login = function (\OC\User\User $user, string $password) {
$this->userSession->logout();
};
$this->userSession->listen('\OC\User', 'postLogin', $callback_post_login);
Is this the desired way to block a login attempt? Is this safe, so that it cannot be circumvented by an attacker?
Best