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 686eb4d commit 2956679
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Authentication attemptAuthentication(HttpServletRequest request, HttpServ

if (requestURI.endsWith(PASSWORD_ACTION)) {
user = new User();
user.setIdentifier(request.getParameter(EMAIL));
user.setIdentifier(StringUtils.toRootLowerCase(request.getParameter(EMAIL)));
user.setPassword(request.getParameter(PASSWORD));
String appid = SecurityUtils.getAppidFromAuthRequest(request);
if (!App.isRoot(appid)) {
Expand Down Expand Up @@ -107,7 +107,7 @@ public UserAuthentication getOrCreateUser(App app, String accessToken) {
User user = new User();
if (accessToken != null && accessToken.contains(Para.getConfig().separator())) {
String[] parts = accessToken.split(Para.getConfig().separator(), 3);
String email = parts[0];
String email = StringUtils.toRootLowerCase(parts[0]);
String name = StringUtils.trimToEmpty(parts[1]);
String pass = (parts.length > 2) ? parts[2] : "";

Expand Down

0 comments on commit 2956679

Please sign in to comment.