/** * Sends a forgot password request to the server. The server generates a link * that will enable to change user password. * * @param string $email * @param string $ipAddress * @throws Exception incorrect email or in case of WS error */ public function forgotPasswordEmail() { try { $authService = new SoapClient(Config::get('wsdl.auth')); $authService->forgotPasswordEmail(array("email" => Input::get('email_address'), "ipAddress" => Input::get('ip_address'))); return array('status' => 'valid'); } catch (Exception $ex) { return array('status' => 'invalid'); } }