-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdefault-options.js
67 lines (55 loc) · 1.48 KB
/
default-options.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
'admin': {
'local': false
},
framework: 'express',
// Register (true) default plugins. Set false to not register when
// using custom versions.
default_plugins: {
authRedirect: true,
authTokenCookie: true,
authUrlmatcher: true,
localAuth: true
},
prefix: '/auth/',
urlpath: {
login: 'login',
logout: 'logout',
user: 'user',
register: 'register',
create_reset: 'create_reset',
load_reset: 'load_reset',
execute_reset: 'execute_reset',
confirm: 'confirm',
update_user: 'update_user',
change_password: 'change_password'
},
restrict: '/account',
// urls patterns to ignore (don't bother looking for user)
exclude: /(\.ico|\.css|\.png|\.jpg|\.gif)$/,
// urls patterns to process (always look for user)
include: [],
// auth plugin's own content
content: ['suffix:/login-web.js'],
// redirect settings, if redirecting
redirect: {
always: false,
win: '/',
fail: '/',
restrict: '/',
login: {win: '/account', fail: '/'},
logout: {win: '/', fail: '/'},
register: {win: '/account', fail: '/'},
reset_create: {win: '/', fail: '/'},
reset_load: {win: '/', fail: '/'},
reset_execute: {win: '/', fail: '/'},
confirm: {win: '/', fail: '/'}
},
user: {
updatefields: ['name', 'email']
}
// loginpages: [
// { path: '/login/admin', redirect: '/admin', title: 'Administration' },
// { path: '/login', redirect: '/account', title: 'Account' }
// ]
}