Commit e02b08ba authored by Ad Schellevis's avatar Ad Schellevis

(auth) add totp keyword to auth factory, https://github.com/opnsense/core/issues/449

parent a35b1453
...@@ -110,6 +110,9 @@ class AuthenticationFactory ...@@ -110,6 +110,9 @@ class AuthenticationFactory
case 'api': case 'api':
$authObject = new API(); $authObject = new API();
break; break;
case 'totp':
$authObject = new LocalTOTP();
break;
default: default:
$authObject = null; $authObject = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment