backend/app/routing/middleware/auth/ProviderRegistrationEnabled.middleware.js

15 lines
425 B
JavaScript
Raw Normal View History

2020-02-08 03:08:24 +00:00
/*
* ProviderRegistrationEnabled Middleware
* -------------------------------------------------------------
* Redirects the user to the login page if the registration page for
* a particular auth provider is not enabled.
*/
const Middleware = require('flitter-auth/middleware/ProviderRegistrationEnabled')
class ProviderRegistrationEnabled extends Middleware {
}
module.exports = ProviderRegistrationEnabled