aboutsummaryrefslogtreecommitdiff
path: root/lib/models/TFASecret.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2023-05-08 17:08:52 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2023-05-08 17:08:52 +0200
commita1fda2758e9c241ac3eb980ac8716dfedbe9dd3c (patch)
tree2190f0478fb153efdb8ba48ebb574c7691f4f351 /lib/models/TFASecret.php
parent244d00ed91ad2b4b83e902a45cd6def3d7bc7e86 (diff)
let phpcsfixer fix errors according to @PSR12 rules on lib/modelsphpcsfixer
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,