mirror of
https://github.com/appwrite/appwrite
synced 2026-05-20 23:48:23 +00:00
Add 'factors' migration
This commit is contained in:
parent
bfe861f846
commit
a5d6af9ded
1 changed files with 1 additions and 0 deletions
|
|
@ -540,6 +540,7 @@ class V20 extends Migration
|
|||
$duration = $this->project->getAttribute('auths', [])['duration'] ?? Auth::TOKEN_EXPIRATION_LOGIN_LONG;
|
||||
$expire = DateTime::addSeconds(new \DateTime(), $duration);
|
||||
$document->setAttribute('expire', $expire);
|
||||
$document->setAttribute('factors', ['email']);
|
||||
break;
|
||||
}
|
||||
return $document;
|
||||
|
|
|
|||
Loading…
Reference in a new issue