plugins/SpecialUserFuncs.php
changeset 521 d264784355e5
parent 517 c6118b9e13bd
child 525 3f2dfdb99be4
equal deleted inserted replaced
520:4c16e87cfeae 521:d264784355e5
   540         redirect( makeUrl(getConfig('main_page'), false, true), $lang->get('user_login_success_title'), $lang->get('user_login_success_body', $subst) );
   540         redirect( makeUrl(getConfig('main_page'), false, true), $lang->get('user_login_success_title'), $lang->get('user_login_success_body', $subst) );
   541       }
   541       }
   542     }
   542     }
   543     else
   543     else
   544     {
   544     {
       
   545       if ( $result['error'] === 'valid_reset' )
       
   546       {
       
   547         header('HTTP/1.1 302 Temporary Redirect');
       
   548         header('Location: ' . $result['redirect_url']);
       
   549         
       
   550         $db->close();
       
   551         exit();
       
   552       }
   545       $GLOBALS['__login_status'] = $result;
   553       $GLOBALS['__login_status'] = $result;
   546     }
   554     }
   547   }
   555   }
   548 }
   556 }
   549 
   557