Start basic LDAP server groundwork
This commit is contained in:
15
app/routing/middleware/auth/GuestOnly.middleware.js
Normal file
15
app/routing/middleware/auth/GuestOnly.middleware.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* GuestOnly Middleware
|
||||
* -------------------------------------------------------------
|
||||
* Allows the request to proceed unless there's an authenticated user
|
||||
* in the session. If so, redirect to the auth flow destination if one
|
||||
* exists. If not, redirect to the default login route.
|
||||
*/
|
||||
const Middleware = require('flitter-auth/middleware/GuestOnly')
|
||||
class GuestOnly extends Middleware {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
module.exports = GuestOnly
|
||||
Reference in New Issue
Block a user