mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-04 15:54:48 +01:00
Merge remote-tracking branch 'fspoettel/admin-panel-2fa' into totp
# Conflicts: # management/daemon.py # management/mfa.py
This commit is contained in:
@@ -222,8 +222,8 @@ mgmt_mfa_status() {
|
||||
local user="$1"
|
||||
local pw="$2"
|
||||
record "[Get MFA status]"
|
||||
if ! mgmt_rest_as_user "GET" "/admin/mfa/status" "$user" "$pw"; then
|
||||
REST_ERROR="Failed: GET /admin/mfa/status: $REST_ERROR"
|
||||
if ! mgmt_rest_as_user "POST" "/admin/mfa/status" "$user" "$pw"; then
|
||||
REST_ERROR="Failed: POST /admin/mfa/status: $REST_ERROR"
|
||||
return 1
|
||||
fi
|
||||
# json is in REST_OUTPUT...
|
||||
|
||||
Reference in New Issue
Block a user