aboutsummaryrefslogtreecommitdiff
path: root/lib/models/TFASecret.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/TFASecret.php')
-rw-r--r--lib/models/TFASecret.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/models/TFASecret.php b/lib/models/TFASecret.php
index 6d14c81..6ae2562 100644
--- a/lib/models/TFASecret.php
+++ b/lib/models/TFASecret.php
@@ -1,4 +1,5 @@
<?php
+
use OTPHP\TOTP;
/**
@@ -23,7 +24,7 @@ class TFASecret extends SimpleORMap
{
// Possible authentication types (email may require more tokens in a short
// period of time with a larger window to accept them).
- const TYPES = [
+ public const TYPES = [
'email' => [
'window' => 60,
'period' => 5,