added TOKEN for users,
added user*() method for API, added check TOKEN for all methods in API
This commit is contained in:
@ -107,6 +107,12 @@ class Maintenance extends \TPsoft\DBmodel\Maintenance
|
||||
$this->dbver(7);
|
||||
$dbver = 7;
|
||||
}
|
||||
if ($dbver == 7) {
|
||||
$this->checkDBAdd('users', 'token', 'VARCHAR(255) DEFAULT NULL AFTER `password_hash`');
|
||||
$this->checkDBAdd('users', 'token_expires', 'DATETIME DEFAULT NULL AFTER `token`');
|
||||
$this->dbver(8);
|
||||
$dbver = 8;
|
||||
}
|
||||
}
|
||||
|
||||
protected function settings(string $key, ?string $value = null): string|false
|
||||
|
||||
Reference in New Issue
Block a user