This commit is contained in:
parent
cd0a3005d2
commit
a8e7437eef
@ -30,12 +30,12 @@ class User extends Model {
|
|||||||
$_SESSION['user'] = $this;
|
$_SESSION['user'] = $this;
|
||||||
$_SESSION['userid'] = $this->id;
|
$_SESSION['userid'] = $this->id;
|
||||||
|
|
||||||
|
$_SESSION['user']->validate();
|
||||||
|
|
||||||
$_SESSION['user']->save();
|
|
||||||
|
|
||||||
var_dump($_SESSION['user']);
|
var_dump($_SESSION['user']);
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
|
$_SESSION['user']->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
function logout()
|
function logout()
|
||||||
|
Reference in New Issue
Block a user