don't add server automatically to trusted server

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2016-11-17 12:51:54 +01:00
parent de983e61e3
commit 7df5c5db2d
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class TrustedServers {
* @return bool
*/
public function getAutoAddServers() {
$value = $this->config->getAppValue('federation', 'autoAddServers', '1');
$value = $this->config->getAppValue('federation', 'autoAddServers', '0');
return $value === '1';
}

View File

@ -172,7 +172,7 @@ class TrustedServersTest extends TestCase {
*/
public function testGetAutoAddServers($status, $expected) {
$this->config->expects($this->once())->method('getAppValue')
->with('federation', 'autoAddServers', '1')->willReturn($status);
->with('federation', 'autoAddServers', '0')->willReturn($status);
$this->assertSame($expected,
$this->trustedServers->getAutoAddServers()