コード例 #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();
    }
}