blob: 3b79d931dd58834162268036c677593c5d2f8317 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
/**
* Model for a two factor authentication token stored in the database.
*
* @author Jan-Hendrik Willms <tleilax+studip@gmail.com>
* @license GPL2 or any later version
* @since Stud.IP 4.4
*
* @property array $id alias for pk
* @property string $user_id database column
* @property string $token database column
* @property int $mkdate database column
*/
class TFAToken extends SimpleORMap
{
/**
* Configures the model.
*
* @param array $config Configuration
*/
protected static function configure($config = [])
{
$config['db_table'] = 'users_tfa_tokens';
parent::configure($config);
}
}
|