forked from .cyb/cyberman
HTTP only cookies
This commit is contained in:
parent
13447382a2
commit
c0ba0c5c7b
|
@ -184,8 +184,8 @@ post '/login' => sub {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
cookie id => $user->{"id"};
|
cookie id => $user->{"id"}, http_only => 1;
|
||||||
cookie token => $token;
|
cookie token => $token, http_only => 1;
|
||||||
|
|
||||||
template 'redir' => {
|
template 'redir' => {
|
||||||
"redir" => "domains",
|
"redir" => "domains",
|
||||||
|
|
Loading…
Reference in New Issue