mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-13 09:48:47 +00:00
Fix null id on user retrieval
Also removed a listshare test that somehow made its way into AuthManager
This commit is contained in:
parent
7c23d3dfdf
commit
35f6d9daa0
@ -28,7 +28,7 @@ public class UserGetter implements CallHandler {
|
||||
System.out.println(userPoolId);
|
||||
ListUsersRequest checkRequest = new ListUsersRequest().withUserPoolId(userPoolId);
|
||||
Object emailObject = bodyMap.get("emailToCheck");
|
||||
if (queryMap.get("id").contains("@")) {
|
||||
if (queryMap.get("id") != null && queryMap.get("id").contains("@")) {
|
||||
emailObject = queryMap.get("id");
|
||||
}
|
||||
String attributeToGet = "sub";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@ -9,7 +9,6 @@ import com.amplifyframework.auth.result.AuthResetPasswordResult;
|
||||
import com.amplifyframework.auth.result.AuthSignInResult;
|
||||
import com.amplifyframework.auth.result.AuthSignUpResult;
|
||||
import com.amplifyframework.core.Amplify;
|
||||
import com.example.listify.data.ListShare;
|
||||
import com.example.listify.data.User;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@ -63,11 +62,6 @@ public class AuthManager {
|
||||
|
||||
public String getEmail(Requestor requestor) {
|
||||
if (email == null) {
|
||||
try {
|
||||
requestor.putObject(new ListShare(285, "nmerz@icloud.com", 210, -1, null));
|
||||
} catch (JSONException jsonException) {
|
||||
jsonException.printStackTrace();
|
||||
}
|
||||
SynchronousReceiver<User> userSynchronousReceiver = new SynchronousReceiver<>();
|
||||
requestor.getObject("", User.class, userSynchronousReceiver);
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user