1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Address Eldad's Comments

This commit is contained in:
Bradley Schofield 2022-11-14 09:57:37 +00:00
parent c76057fd37
commit 43d4d6fec3
3 changed files with 1 additions and 12 deletions

View file

@ -633,17 +633,6 @@ $collections = [
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('authDuration'),
'type' => Database::VAR_INTEGER,
'format' => '',
'size' => 32,
'signed' => true,
'required' => false,
'default' => Auth::TOKEN_EXPIRATION_LOGIN_LONG, // 1 Year
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('services'),
'type' => Database::VAR_STRING,

View file

@ -246,6 +246,7 @@ class Project extends Model
$auth = Config::getParam('auth', []);
$document->setAttribute('authLimit', $authValues['limit'] ?? 0);
$document->setAttribute('authDuration', $authValues['duration'] ?? 0);
foreach ($auth as $index => $method) {
$key = $method['key'];

View file

@ -53,7 +53,6 @@ trait ProjectCustom
'legalCity' => '',
'legalAddress' => '',
'legalTaxId' => '',
'authDuration' => 525600
]);
$this->assertEquals(201, $project['headers']['status-code']);