mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-10 18:55:03 +00:00
Fix other user email retrieval
The id argument needs to actually be used
This commit is contained in:
@@ -33,15 +33,12 @@ public class UserGetter implements CallHandler {
|
||||
checkRequest.setFilter("email=\"" + emailObject.toString() +"\"");
|
||||
} else {
|
||||
try {
|
||||
// String id = queryMap.get("id");
|
||||
String id = queryMap.get("id");
|
||||
attributeToGet = "email";
|
||||
checkRequest.setFilter("sub=\"" + cognitoID + "\"");
|
||||
// if ((id != null) && (!id.equals(""))) {
|
||||
// attributeToGet = "email";
|
||||
// checkRequest.setFilter("sub=\"" + cognitoID + "\"");
|
||||
// } else {
|
||||
// return cognitoID;
|
||||
// }
|
||||
if ((id != null) && (!id.equals(""))) {
|
||||
checkRequest.setFilter("sub=\"" + id + "\"");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.out.println(e);
|
||||
return new User(cognitoID, null);
|
||||
|
||||
Reference in New Issue
Block a user