Fix 2FA AppSpecificPassword
This commit is contained in:
parent
474c185294
commit
5f3421701f
1 changed files with 5 additions and 3 deletions
|
@ -86,9 +86,11 @@ class AppSpecificPassword
|
||||||
$appSpecificPasswords = DBA::toArray($appSpecificPasswordsStmt);
|
$appSpecificPasswords = DBA::toArray($appSpecificPasswordsStmt);
|
||||||
|
|
||||||
array_walk($appSpecificPasswords, function (&$value) {
|
array_walk($appSpecificPasswords, function (&$value) {
|
||||||
$value['ago'] = Temporal::getRelativeDate($value['last_used']);
|
$last_used = $value['last_used'] ?? DBA::NULL_DATETIME;
|
||||||
$value['utc'] = DateTimeFormat::utc($value['last_used'], 'c');
|
|
||||||
$value['local'] = DateTimeFormat::local($value['last_used'], 'r');
|
$value['ago'] = Temporal::getRelativeDate($last_used);
|
||||||
|
$value['utc'] = DateTimeFormat::utc($last_used, 'c');
|
||||||
|
$value['local'] = DateTimeFormat::local($last_used, 'r');
|
||||||
});
|
});
|
||||||
|
|
||||||
return $appSpecificPasswords;
|
return $appSpecificPasswords;
|
||||||
|
|
Loading…
Reference in a new issue