-- -- (C) 2013-26 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPContentTypeHeader('text/html') local info = ntop.getInfo() local token = _GET["token"] or "" local reason = _GET["reason"] local http_prefix = ntop.getHttpPrefix() -- Basic token sanity check if isEmptyString(token) then print('') return end print[[ ]] print(i18n("mfa.title") or "Two-Factor Authentication") print[[

]] print(i18n("mfa.two_factor_auth") or "Two-Factor Authentication") print[[

]] print(i18n("mfa.enter_code_prompt") or "Enter the 6-digit code from your authenticator app.") print[[

]] if reason == "wrong-code" then print[[ ]] end print[[
]]