diff --git a/app/library/Auth/Result.php b/app/library/Auth/Result.php new file mode 100644 index 0000000..f6381aa --- /dev/null +++ b/app/library/Auth/Result.php @@ -0,0 +1,53 @@ +_code = (int) $code; + } + + /** + * Get the result code for this authentication attempt. + * + * @return int + */ + public function getCode() + { + return $this->_code; + } + + /** + * Returns true if the authentication was sucessfull, false otherwise. + * + * @return bool + */ + public function isValid() + { + return $this->_code == self::SUCCESS; + } +}