plugins/SpecialUserFuncs.php
changeset 1301 bd9e124f5904
parent 1293 83e0fcd008e1
child 1303 ed0bd14b6223
equal deleted inserted replaced
1300:1f97ee3ec614 1301:bd9e124f5904
  1456 					echo '<p>' . $lang->get('userfuncs_passreset_err_no_match') . '</p>';
  1456 					echo '<p>' . $lang->get('userfuncs_passreset_err_no_match') . '</p>';
  1457 					$template->footer();
  1457 					$template->footer();
  1458 					return false;
  1458 					return false;
  1459 				}
  1459 				}
  1460 			}
  1460 			}
  1461 			if ( getConfig('pw_strength_enable') == '1' )
  1461 			if ( getConfig('pw_strength_enable') == 1 )
  1462 			{
  1462 			{
  1463 				$min_score = intval(getConfig('pw_strength_minimum'));
  1463 				$min_score = intval(getConfig('pw_strength_minimum'));
  1464 				$inp_score = password_score($data);
  1464 				$inp_score = password_score($data);
  1465 				if ( $inp_score < $min_score )
  1465 				if ( $inp_score < $min_score )
  1466 				{
  1466 				{
  1511 					</tr>
  1511 					</tr>
  1512 				</table>
  1512 				</table>
  1513 			</div>
  1513 			</div>
  1514 			<?php echo $session->generate_aes_form(); ?>
  1514 			<?php echo $session->generate_aes_form(); ?>
  1515 		</form>
  1515 		</form>
       
  1516 		<?php if ( getConfig('pw_strength_enable') == 1 ): ?>
  1516 		<script type="text/javascript">
  1517 		<script type="text/javascript">
  1517 		addOnloadHook(function()
  1518 		addOnloadHook(function()
  1518 			{
  1519 			{
  1519 				load_component('pwstrength');
  1520 				load_component('pwstrength');
  1520 				password_score_field(document.forms.resetform.pass);
  1521 				password_score_field(document.forms.resetform.pass);
  1521 			});
  1522 			});
  1522 		</script>
  1523 		</script>
  1523 		<?php
  1524 		<?php
       
  1525 		endif;
       
  1526 		
  1524 		echo $session->aes_javascript('resetform', 'pass', 'use_crypt', 'crypt_key', 'crypt_data', 'challenge_data', 'dh_supported', 'dh_public_key', 'dh_client_public_key');
  1527 		echo $session->aes_javascript('resetform', 'pass', 'use_crypt', 'crypt_key', 'crypt_data', 'challenge_data', 'dh_supported', 'dh_public_key', 'dh_client_public_key');
  1525 		$template->footer();
  1528 		$template->footer();
  1526 		return true;
  1529 		return true;
  1527 	}
  1530 	}
  1528 	if ( $session->user_logged_in )
  1531 	if ( $session->user_logged_in )