예제 #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();
    }
}