1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/pam/plugins/gallery/gallery.php

25 lines
414 B
PHP

<?php defined("SYSPATH") or die("No direct script access.");
/**
* a plugin to authenticate users using the Gallery3 identity
*
*/
class pam_gallery
{
private $result;
public function __construct($name, $pass)
{
$user = identity::lookup_user_by_name($name);
$this->result = identity::is_correct_password($user, $pass);
}
public function isAuth()
{
return $this->result;
}
}
?>