Jump to content

Inactive Pilot Problem [SOLVED]


Recommended Posts

Posted

I have set a member as inactive, but the pilot is still able to log in.

  1. Used drop-down (Active/Inactive) in Admin Center
  2. Checked phpMyAdmin to see, and yes, it is showing as 1

Is there something I missed?

  • Moderators
Posted

You are on a beta release?

These are still some problems identified in the latest release which is why its a beta :)

Nabeel is on a programming break at the moment for a while to recharge but when he ius back im sure this will be sorted.

  • Administrators
Posted

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.

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...