From e02b08bacd28bef31b2ed7ea42b30d5ec2249dfc Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 15 May 2016 13:19:19 +0200 Subject: [PATCH] (auth) add totp keyword to auth factory, https://github.com/opnsense/core/issues/449 --- .../mvc/app/library/OPNsense/Auth/AuthenticationFactory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php b/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php index 200b6d3ee..15b220e64 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php @@ -110,6 +110,9 @@ class AuthenticationFactory case 'api': $authObject = new API(); break; + case 'totp': + $authObject = new LocalTOTP(); + break; default: $authObject = null; }