Commit afa63f76 authored by Patrick Schmalstig's avatar Patrick Schmalstig
Browse files

Fixed MANTIS-5903 (Missing require_code for cms_eatcookie in forum driver auth)

parent 9d5db49f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -190,6 +190,9 @@ function cns_authorise_login(object $this_ref, ?string $username, ?int $member_i
        $password_compat_scheme = $row['m_password_compat_scheme'];
        $needs_rehash = false;
        if ($cookie_login) {
            require_code('users');
            require_code('users_active_actions');

            switch ($password_compat_scheme) {
                case 'pending_deletion': // Account is actually pending deletion in the task queue; we should bail on error
                    cms_eatcookie(get_member_cookie());