Skip to content

Commit fb05ef3

Browse files
committed
fixup! Use a case insensitive search for email
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 01d65ad commit fb05ef3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,7 @@ Options -Indexes
8080
<IfModule pagespeed_module>
8181
ModPagespeed Off
8282
</IfModule>
83+
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
84+
85+
ErrorDocument 403 /
86+
ErrorDocument 404 /

tests/lib/User/ManagerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99

1010
namespace Test\User;
11+
use OC\AllConfig;
1112
use OC\User\Database;
1213
use OC\User\Manager;
1314
use OCP\IConfig;
@@ -670,12 +671,12 @@ public function testDeleteUser() {
670671
}
671672

672673
public function testGetByEmail() {
673-
$config = $this->getMockBuilder(IConfig::class)
674+
$config = $this->getMockBuilder(AllConfig::class)
674675
->disableOriginalConstructor()
675676
->getMock();
676677
$config
677678
->expects($this->at(0))
678-
->method('getUsersForUserValue')
679+
->method('getUsersForUserValueCaseInsensitive')
679680
->with('settings', 'email', 'test@example.com')
680681
->will($this->returnValue(['uid1', 'uid99', 'uid2']));
681682

0 commit comments

Comments
 (0)