added tempory authentication type
This commit is contained in:
parent
458cbd3d95
commit
80e1da86fd
@ -33,7 +33,13 @@ class Crunchbutton_Auth_Base extends Cana_Model {
|
||||
$this->session()->id_session = $id_session;
|
||||
$this->session()->id_user = $id_user;
|
||||
$this->session()->id_admin = $id_admin;
|
||||
$this->session()->token = $token;
|
||||
|
||||
$headers = get_headers();
|
||||
if ($headers['Session-Type'] == 'passthru' && $headers['Session-Type-Key'] == c::config()->site->config('chat-server-key')->val()) {
|
||||
|
||||
} else {
|
||||
$this->session()->token = $token;
|
||||
}
|
||||
} else {
|
||||
// if no id_user in session, delete cookie and session in DB as it's not used, see #624
|
||||
Session::deleteToken($_COOKIE['token']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user