mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-05 04:07:23 +02:00
OTP/2FA config template & luciano blocktronics theme
This commit is contained in:
parent
42ac6f8689
commit
abc6a36275
5 changed files with 139 additions and 1 deletions
|
@ -1137,6 +1137,23 @@
|
|||
value: { command: "MRC" }
|
||||
action: @menu:mrc
|
||||
}
|
||||
{
|
||||
value: { command: "2FA" }
|
||||
action: [
|
||||
{
|
||||
//
|
||||
// For security reasons, only allow 2FA/OTP to be
|
||||
// configured over already secure (SSL, wss://, ...)
|
||||
// connections. Not doing so risks leaking secrets!
|
||||
//
|
||||
acs: SC
|
||||
action: @menu:userTwoFactorAuthOTPConfig
|
||||
}
|
||||
{
|
||||
action: @menu:userTwoFactorAuthOTPSecConnRequired
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
value: 1
|
||||
action: @menu:mainMenu
|
||||
|
@ -1210,6 +1227,85 @@
|
|||
}
|
||||
}
|
||||
|
||||
userTwoFactorAuthOTPConfig: {
|
||||
desc: 2FA/OTP Config
|
||||
module: user_2fa_otp_config
|
||||
art: 2FACONFSCR
|
||||
form: {
|
||||
0: {
|
||||
mci: {
|
||||
TM1: {
|
||||
argName: enableToggle
|
||||
focus: true
|
||||
items: [
|
||||
// order is important here:
|
||||
"disable"
|
||||
"enable/reset"
|
||||
]
|
||||
}
|
||||
SM2: {
|
||||
argName: otpType
|
||||
items: [
|
||||
// order is important here:
|
||||
"Time-Based - TOTP"
|
||||
"HMAC-Based - HOTP"
|
||||
"Google Authenticator"
|
||||
]
|
||||
}
|
||||
TM3: {
|
||||
argName: submit
|
||||
items: [
|
||||
"save"
|
||||
"cancel"
|
||||
]
|
||||
submit: true
|
||||
}
|
||||
}
|
||||
|
||||
submit: {
|
||||
*: [
|
||||
{
|
||||
value: { submit: 0 }
|
||||
action: @method:saveChanges
|
||||
}
|
||||
{
|
||||
value: { submit: 1 }
|
||||
action: @systemMethod:prevMenu
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
actionKeys: [
|
||||
{
|
||||
keys: [ "escape" ]
|
||||
action: @systemMethod:prevMenu
|
||||
}
|
||||
{
|
||||
keys: [ "q", "shift + q" ]
|
||||
action: @method:showQRCode
|
||||
}
|
||||
{
|
||||
keys: [ "s", "shift + s" ]
|
||||
action: @method:showSecret
|
||||
}
|
||||
{
|
||||
keys: [ "b", "shift + b" ]
|
||||
action: @method:showBackupCodes
|
||||
}
|
||||
{
|
||||
keys: [ "n", "shift + n" ]
|
||||
action: @method:generateNewBackupCodes
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
userTwoFactorAuthOTPSecConnRequired: {
|
||||
desc: Insecure Warning
|
||||
art: 2FAOTPSECREQ
|
||||
}
|
||||
|
||||
nodeMessage: {
|
||||
desc: Node Messaging
|
||||
module: node_msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue