Jump to content

Inactive Pilot Problem [SOLVED]


Jeff

Recommended Posts

  • Administrators

There is actually a piece of code that is in the core/common/Auth.class.php file that will prevent an inactive member from logging in. It is located around line 269;

/*if($userinfo->retired == 1)
       {
       self::$error_message = 'Your account was deactivated, please contact an admin';
       return false;
       }*/

Un-comment it and it will lock out inactive users and also all but kACARS from connecting and allowing a PIREP submittal to reactivate the account. To stop inactive pilots from using kACARS I have added in to kACARS.php;

if($pilotinfo->retired == 1){exit;}

between

$pilotinfo = PilotData::getPilotData($pilotid);

and

switch($xml->switch->data)

That will not allow an inactive pilot to login with kACARS and submit a PIREP which in turn would reactivate their account.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...