Jeff Posted September 17, 2011 Report Share Posted September 17, 2011 I have set a member as inactive, but the pilot is still able to log in. Used drop-down (Active/Inactive) in Admin Center Checked phpMyAdmin to see, and yes, it is showing as 1 Is there something I missed? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted September 17, 2011 Moderators Report Share Posted September 17, 2011 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. Quote Link to comment Share on other sites More sharing options...
Jeff Posted September 17, 2011 Author Report Share Posted September 17, 2011 Nope, I haven't installed any Beta Releases. I am still on the original Version 2.1.934 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted September 17, 2011 Moderators Report Share Posted September 17, 2011 On the release there is not the option there to prevent logging in., this was only introduced later with the betas. Quote Link to comment Share on other sites More sharing options...
Jeff Posted September 18, 2011 Author Report Share Posted September 18, 2011 What does it actually do then? Does it leave limited options that the pilot can do or what? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted September 21, 2011 Administrators Report Share Posted September 21, 2011 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. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted September 21, 2011 Moderators Report Share Posted September 21, 2011 That's excellent Dave, thanks for that. Quote Link to comment Share on other sites More sharing options...
Jeff Posted September 21, 2011 Author Report Share Posted September 21, 2011 Tested and works perfectly. Thank you once again Dave. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.