mirror of
https://github.com/vale981/lack
synced 2025-03-04 17:01:41 -05:00
Validate session ID.
This commit is contained in:
parent
06d0021da7
commit
7106525601
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@
|
|||
(funcall (state-sid-generator state) env))
|
||||
|
||||
(defgeneric extract-sid (state env))
|
||||
(defmethod extract-sid :around ((state state) env)
|
||||
(let ((sid (call-next-method)))
|
||||
(when (and sid
|
||||
(funcall (state-sid-validator state) sid))
|
||||
sid)))
|
||||
|
||||
(defgeneric expire-state (state sid res options))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue