You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
649 B
23 lines
649 B
const FormController = require('flitter-auth/controllers/Forms')
|
|
|
|
/*
|
|
* Handles views and processing for auth registration/login/logout/etc.
|
|
* Most handlers are inherited from the default flitter-auth/controllers/Forms
|
|
* controller, however you can override them here as you need.
|
|
*/
|
|
class Forms extends FormController {
|
|
static get services() {
|
|
return [...super.services, 'Vue']
|
|
}
|
|
|
|
async login_provider_get(req, res, next) {
|
|
return res.page('auth:login', {
|
|
...this.Vue.data({
|
|
login_message: 'Please sign-in to continue.'
|
|
}),
|
|
})
|
|
}
|
|
}
|
|
|
|
module.exports = exports = Forms
|