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