'any', 'requestData' => [ 'email' => [ 'validation' => DataValidator::email(), 'error' => ERRORS::INVALID_EMAIL ] ] ]; } public function handler() { $email = Controller::request('email'); $token = Hashing::generateRandomToken(); $recoverPassword = new RecoverPassword(); $recoverPassword->setProperties(array( 'email' => $email, 'token' => $token )); $recoverPassword->store(); Response::respondSuccess(); //TODO: mandar mail con token } }