diff --git a/app/config/auth.php b/app/config/auth.php index ca62256dc2..2330fe75cf 100644 --- a/app/config/auth.php +++ b/app/config/auth.php @@ -17,6 +17,13 @@ return [ 'docs' => 'https://appwrite.io/docs/references/cloud/client-web/account#accountCreateMagicURLToken', 'enabled' => true, ], + 'email-otp' => [ + 'name' => 'Email (OTP)', + 'key' => 'emailOtp', + 'icon' => '/images/users/email.png', + 'docs' => 'https://appwrite.io/docs/references/cloud/client-web/account#accountCreateEmailToken', + 'enabled' => true, + ], 'anonymous' => [ 'name' => 'Anonymous', 'key' => 'anonymous', diff --git a/app/config/collections.php b/app/config/collections.php index 526ed9f954..c4f0208618 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -681,6 +681,17 @@ $commonCollections = [ 'array' => false, 'filters' => [], ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], ], 'indexes' => [ [ diff --git a/app/config/locale/languages.php b/app/config/locale/languages.php index 6272bd02a6..eeea92e636 100644 --- a/app/config/locale/languages.php +++ b/app/config/locale/languages.php @@ -654,10 +654,15 @@ return [ "nativeName" => "پښتو" ], [ - "code" => "pt", + "code" => "pt-pt", "name" => "Portuguese", "nativeName" => "Português" ], + [ + "code" => "pt-br", + "name" => "Portuguese (Brazilian)", + "nativeName" => "Português" + ], [ "code" => "qu", "name" => "Quechua", @@ -919,9 +924,14 @@ return [ "nativeName" => "Cuengh / Tôô / 壮语" ], [ - "code" => "zh", - "name" => "Chinese", - "nativeName" => "中文" + "code" => "zh-cn", + "name" => "Chinese (Simplified)", + "nativeName" => "中国人" + ], + [ + "code" => "zh-tw", + "name" => "Chinese (Traditional)", + "nativeName" => "中國人" ], [ "code" => "zu", diff --git a/app/config/locale/templates/email-base-styled.tpl b/app/config/locale/templates/email-base-styled.tpl index 8e8bc7f6cd..4d6972389e 100644 --- a/app/config/locale/templates/email-base-styled.tpl +++ b/app/config/locale/templates/email-base-styled.tpl @@ -1,10 +1,9 @@ - + - + + + + - + +
@@ -176,7 +142,9 @@
- +
{{message}} +{{body}} +
@@ -200,7 +168,7 @@ class="social-icon" title="Twitter" > - + @@ -208,7 +176,7 @@ href="https://appwrite.io/discord" class="social-icon" > - + @@ -216,7 +184,7 @@ href="https://github.com/appwrite/appwrite" class="social-icon" > - + diff --git a/app/config/locale/templates/email-base.tpl b/app/config/locale/templates/email-base.tpl index 346f2f1589..13056fd5ae 100644 --- a/app/config/locale/templates/email-base.tpl +++ b/app/config/locale/templates/email-base.tpl @@ -1,5 +1,74 @@ + + + + + + @@ -10,6 +79,7 @@