Skip to content

Commit

Permalink
fixed login email should not be case-sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Jun 21, 2024
1 parent 2956679 commit 53fd189
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ public void testOwnersPermissions() throws InterruptedException {
String emailPassFail = emailInactive + "::12345678";
String emailPassPass = "test3@user.com::12345678";
String emailPassPass2 = "test4@user.com::12345678";
String emailPassPass3 = "TEST4@user.COM::12345678";
assertNull(pcc.signIn("password", emailPassFail)); // unverified email - user is created but not active
List<User> failed = pcc.findTerms(fbUser.getType(), Collections.singletonMap(Config._EMAIL, emailInactive), true);
assertFalse(failed.isEmpty());
Expand All @@ -1034,6 +1035,8 @@ public void testOwnersPermissions() throws InterruptedException {
pcc.signOut();
assertNotNull(pcc.signIn("password", emailPassPass));
pcc.signOut();
assertNotNull(pcc.signIn("password", emailPassPass3)); // emails mustn't be case sensitive
pcc.signOut();

// test permissions with/without signed in user
assertTrue(pcc.isAllowedTo(newUser.getId(), newUser.getObjectURI(), GET.toString()));
Expand Down

0 comments on commit 53fd189

Please sign in to comment.