forked from NodeBB/nodebb-plugin-2factor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.json
32 lines (32 loc) · 989 Bytes
/
plugin.json
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
{
"id": "nodebb-plugin-2factor",
"url": "https://github.com/NodeBB/nodebb-plugin-2factor",
"library": "./library.js",
"hooks": [
{ "hook": "static:app.load", "method": "init" },
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
{ "hook": "filter:user.profileMenu", "method": "addProfileItem" },
{ "hook": "filter:router.page", "method": "check" },
{ "hook": "static:user.loggedOut", "method": "clearSession" },
{ "hook": "filter:middleware.render", "method": "updateTitle" },
{ "hook": "static:sockets.validateSession", "method": "checkSocket" },
{ "hook": "response:plugin.write-api.route", "method": "integrations.writeApi" }
],
"staticDirs": {
"static": "./static"
},
"less": [
"static/style.less"
],
"scripts": [
"static/lib/login.js",
"static/lib/backup-code.js",
"static/lib/settings.js"
],
"acpScripts": [
"static/lib/admin.js"
],
"templates": "static/templates",
"languages": "languages",
"defaultLang": "en-GB"
}