Retrieve existing session if signing in from static page with active session.
This commit is contained in:
parent
cf559766b7
commit
52bec4651a
|
@ -269,7 +269,11 @@
|
|||
|
||||
(define (login-or-register-flow request thunk)
|
||||
(define-form-bindings request ([k (named-url main-page)]))
|
||||
(login-or-register-flow* k thunk))
|
||||
(define session (request->session request))
|
||||
(if session
|
||||
(with-site-config
|
||||
(bootstrap-redirect k))
|
||||
(login-or-register-flow* k thunk)))
|
||||
|
||||
(define (login-or-register-flow* k thunk)
|
||||
(with-session-cookie (thunk)
|
||||
|
|
Loading…
Reference in New Issue
Block a user