Skip to content

Commit

Permalink
USH-4497: Do not append domain to username with @
Browse files Browse the repository at this point in the history
* Users now can login as web users which already have the complete
  username used for couch. Do not append domain and host it that
  case
  • Loading branch information
MartinRiese committed May 2, 2024
1 parent db2caad commit 11e15b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/commcare/formplayer/util/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ public static String getFullUsername(String user, String domain, String host) {
}

public static String getFullUsername(String user, String domain) {
if (user.contains("@")) {
return user;

Check warning on line 13 in src/main/java/org/commcare/formplayer/util/StringUtils.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/commcare/formplayer/util/StringUtils.java#L13

Added line #L13 was not covered by tests
}
return getFullUsername(user, domain, Constants.COMMCARE_USER_SUFFIX);
}

Expand Down

0 comments on commit 11e15b8

Please sign in to comment.