mirror of
https://github.com/appwrite/appwrite
synced 2026-04-21 13:37:16 +00:00
More cleanup of sms templates
This commit is contained in:
parent
0da185e689
commit
53ed9462bd
6 changed files with 1 additions and 46 deletions
|
|
@ -9,11 +9,5 @@ return [
|
|||
'mfaChallenge',
|
||||
'sessionAlert',
|
||||
'otpSession'
|
||||
],
|
||||
'sms' => [
|
||||
'verification',
|
||||
'login',
|
||||
'invitation',
|
||||
'mfaChallenge'
|
||||
]
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
|
||||
|
|
@ -1 +0,0 @@
|
|||
Get a custom SMS template for the specified locale and type returning it's contents.
|
||||
|
|
@ -1 +0,0 @@
|
|||
Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
|
||||
|
|
@ -19,7 +19,7 @@ abstract class Template extends Model
|
|||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Template locale',
|
||||
'default' => '',
|
||||
'example' => 'en_us',
|
||||
'example' => 'worldwide',
|
||||
])
|
||||
->addRule('message', [
|
||||
'type' => self::TYPE_STRING,
|
||||
|
|
|
|||
|
|
@ -1161,42 +1161,6 @@ class ProjectsConsoleClientTest extends Scope
|
|||
$this->assertEquals('verification', $response['body']['type']);
|
||||
$this->assertEquals('en-us', $response['body']['locale']);
|
||||
$this->assertEquals('Please verify your email {{url}}', $response['body']['message']);
|
||||
|
||||
// Temporary disabled until implemented
|
||||
// /** Get Default SMS Template */
|
||||
// $response = $this->client->call(Client::METHOD_GET, '/projects/' . $id . '/templates/sms/verification/en-us', array_merge([
|
||||
// 'content-type' => 'application/json',
|
||||
// 'x-appwrite-project' => $this->getProject()['$id'],
|
||||
// ], $this->getHeaders()));
|
||||
|
||||
// $this->assertEquals(200, $response['headers']['status-code']);
|
||||
// $this->assertEquals('verification', $response['body']['type']);
|
||||
// $this->assertEquals('en-us', $response['body']['locale']);
|
||||
// $this->assertEquals('{{token}}', $response['body']['message']);
|
||||
|
||||
// /** Update SMS template */
|
||||
// $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $id . '/templates/sms/verification/en-us', array_merge([
|
||||
// 'content-type' => 'application/json',
|
||||
// 'x-appwrite-project' => $this->getProject()['$id'],
|
||||
// ], $this->getHeaders()), [
|
||||
// 'message' => 'Please verify your email {{token}}',
|
||||
// ]);
|
||||
|
||||
// $this->assertEquals(200, $response['headers']['status-code']);
|
||||
// $this->assertEquals('verification', $response['body']['type']);
|
||||
// $this->assertEquals('en-us', $response['body']['locale']);
|
||||
// $this->assertEquals('Please verify your email {{token}}', $response['body']['message']);
|
||||
|
||||
// /** Get Updated SMS Template */
|
||||
// $response = $this->client->call(Client::METHOD_GET, '/projects/' . $id . '/templates/sms/verification/en-us', array_merge([
|
||||
// 'content-type' => 'application/json',
|
||||
// 'x-appwrite-project' => $this->getProject()['$id'],
|
||||
// ], $this->getHeaders()));
|
||||
|
||||
// $this->assertEquals(200, $response['headers']['status-code']);
|
||||
// $this->assertEquals('verification', $response['body']['type']);
|
||||
// $this->assertEquals('en-us', $response['body']['locale']);
|
||||
// $this->assertEquals('Please verify your email {{token}}', $response['body']['message']);
|
||||
}
|
||||
|
||||
public function testUpdateProjectAuthDuration(): void
|
||||
|
|
|
|||
Loading…
Reference in a new issue