diff --git a/ForumProvider/smf2.0.php b/ForumProvider/smf2.0.php index b30e931..e94ad40 100644 --- a/ForumProvider/smf2.0.php +++ b/ForumProvider/smf2.0.php @@ -313,7 +313,7 @@ public function legacyUpdateWikiUser(array $member, object $wikiUser): bool */ public function checkBans(array $member): bool { - $banned = isset($profile['is_activated']) ? $profile['is_activated'] >= 10 : 0; + $banned = isset($member['is_activated']) ? $member['is_activated'] >= 10 : 0; if (empty($banned)) $banned = $this->__check_basic_ban((int) $member['id_member']); diff --git a/ForumProvider/smf2.1.php b/ForumProvider/smf2.1.php index 8e0ca3d..b9df341 100644 --- a/ForumProvider/smf2.1.php +++ b/ForumProvider/smf2.1.php @@ -21,6 +21,12 @@ */ class ForumSoftwareProvidersmf21 extends ForumSoftwareProvidersmf20 { + protected $validRedirectActions = [ + 'createaccount' => 'signup', + 'userlogin' => 'login', + 'userlogout' => 'logout' + ]; + /** * Decodes the forum software cookie returning the id and password. * @@ -82,7 +88,7 @@ public function cookiePasswordIsValid(array $user, array $cookie): bool */ public function checkBans(array $member): bool { - $banned = isset($profile['is_activated']) ? $profile['is_activated'] >= 10 : 0; + $banned = isset($member['is_activated']) ? $member['is_activated'] >= 10 : 0; if (empty($banned)) $banned = $this->__check_basic_ban((int) $member['id_member']);