mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Fix password visibility test
This commit is contained in:
1 parent
dfec2b3cb7
commit
8ea69e0321
3 files changed
+19
-10
No files matched your search
@@ -971,7 +971,8 @@ class ProjectsConsoleClientTest extends Scope
|
||||
$this->assertEquals($smtpHost, $response['body']['smtpHost']);
|
||||
$this->assertEquals($smtpPort, $response['body']['smtpPort']);
|
||||
$this->assertEquals($smtpUsername, $response['body']['smtpUsername']);
|
||||
$this->assertEquals($smtpPassword, $response['body']['smtpPassword']);
|
||||
// smtpPassword is write-only: the stored password must never leak in responses
|
||||
$this->assertEquals('', $response['body']['smtpPassword']);
|
||||
$this->assertEquals('', $response['body']['smtpSecure']);
|
||||
|
||||
// Check the project
|
||||
@@ -987,7 +988,8 @@ class ProjectsConsoleClientTest extends Scope
|
||||
$this->assertEquals($smtpHost, $response['body']['smtpHost']);
|
||||
$this->assertEquals($smtpPort, $response['body']['smtpPort']);
|
||||
$this->assertEquals($smtpUsername, $response['body']['smtpUsername']);
|
||||
$this->assertEquals($smtpPassword, $response['body']['smtpPassword']);
|
||||
// smtpPassword is write-only: the stored password must never leak in responses
|
||||
$this->assertEquals('', $response['body']['smtpPassword']);
|
||||
$this->assertEquals('', $response['body']['smtpSecure']);
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user