示例#1
0
文件: voluntario.php 项目: Adrxx/PC
function makeSession($email, $password)
{
    $voluntario = new Voluntario(findVoluntarioByEmail($email));
    if ($voluntario->getPassword() == $password) {
        return $voluntario->getID();
    }
    return null;
}
示例#2
0
文件: voluntariob.php 项目: Adrxx/PC
function makeSession($email, $password)
{
    $voluntario = new Voluntario(findVoluntarioByEmail($email));
    if ($voluntario->getPassword() == $password) {
        $_SESSION['voluntario'] = $voluntario->getID();
    }
}