Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Fatal error: Uncaught Error: Call to undefined function verify_user_password()
#1
Not Solved
Hi forum and friends:

This my error message

Fatal error: Uncaught Error: Call to undefined function verify_user_password() in /home/wio.com.mx/domains/interactu.wio.com.mx/public_html/inc/datahandlers/login.php:196 Stack trace: #0 /home/wio.com.mx/domains/interactu.wio.com.mx/public_html/inc/datahandlers/login.php(284): LoginDataHandler->verify_password() #1 /home/wio.com.mx/domains/comun.php(190): LoginDataHandler->validate_login() #2 /home/wio.com.mx/domains/hosting.wio.com.mx/public_html/htm.php(585): comunes->login('Augustino|raza8...', 1) #3 /home/wio.com.mx/domains/hosting.wio.com.mx/public_html/htm.php(130): hosting->login('Augustino|raza8...') #4 /home/wio.com.mx/domains/hosting.wio.com.mx/public_html/htm.php(39): hosting->seleccionarseccion('LOGIN', 'Augustino|raza8...') #5 /home/wio.com.mx/domains/hosting.wio.com.mx/public_html/htm.php(712): hosting->decidiraccion('LOGIN', '0') #6 {main} thrown in /home/wio.com.mx/domains/interactu.wio.com.mx/public_html/inc/datahandlers/login.php on line 196

My code is:

	function login($info,$resultadoint=0){
		global $plugins,$mybb,$db,$templates,$config;
		$datos=explode("|",$info);
		$inline_errors = "";
		$plugins->run_hooks("member_do_login_start");
		// Is a fatal call if user has had too many tries
		$errors = array();
		$logins = login_attempt_check();
		require_once "interactu.wio.com.mx/public_html/inc/datahandlers/login.php";
		$loginhandler = new LoginDataHandler("get");
		$user = array(
			'username' => $datos[0],
			'password' => $datos[1],
			'remember' => "yes",
			'imagestring' => ""
		);
		$user_loginattempts = get_user_by_username($user['username'], array('fields' => 'loginattempts'));
		$user['loginattempts'] = (int)$user_loginattempts['loginattempts'];
		$loginhandler->set_data($user);
		$validated = $loginhandler->validate_login();
		if($validated==1){
			$mybb->user = get_user($loginhandler->login_data['uid']);
			my_setcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey'], null, true);
			$usuario=$mybb->user['username'];
			$logout=md5($mybb->user['loginkey']);
			if($mybb->user['usergroup']==4){
				eval('$adminpanelvinc= "'.$templates->get('TD_ajax_adminvinc').'";');				
			}
			eval('$resultado= "'.$templates->get('TD_logeado').'";');
			if($resultadoint==1){
				$resultado=2;	
			}
		}else{
			$db->update_query("users", array('loginattempts' => 'loginattempts+1'), "LOWER(username) = '".$db->escape_string(my_strtolower($user['username']))."'", 1, true);
			$user_loginattempts = get_user_by_username($user['username'], array('fields' => 'loginattempts'));
			$user['loginattempts'] = (int)$user_loginattempts['loginattempts'];
			if($user['loginattempts']<5){
				$resultado=0;
			}
			if($user['loginattempts']>5){
				$resultado=1;	
			}
		}
		return $resultado;
	}

Where is my error?, best regards
Reply
#2
Not Solved
verify_user_password is defined in functions_user.php file
Reply
#3
Not Solved
(05-24-2017, 05:58 PM).m. Wrote: verify_user_password is defined in functions_user.php file

ok, thanks
Best Regards
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)