mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add 'factors' migration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user