return userId upon login
This commit is contained in:
1 parent
724b0e342f
commit
aa974c8925
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module external.linked.project.path="D:\NFCapp_SERVER" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||||
<component name="FacetManager">
|
<component name="FacetManager">
|
||||||
<facet type="Spring" name="Spring">
|
<facet type="Spring" name="Spring">
|
||||||
<configuration>
|
<configuration>
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
||||||
</webroots>
|
</webroots>
|
||||||
<sourceRoots>
|
<sourceRoots>
|
||||||
<root url="file://$MODULE_DIR$/src/main/resources" />
|
|
||||||
<root url="file://$MODULE_DIR$/src/main/java" />
|
<root url="file://$MODULE_DIR$/src/main/java" />
|
||||||
|
<root url="file://$MODULE_DIR$/src/main/resources" />
|
||||||
</sourceRoots>
|
</sourceRoots>
|
||||||
</configuration>
|
</configuration>
|
||||||
</facet>
|
</facet>
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class UserController {
|
|||||||
if(login.equals(user.getEmail()) && password.equals(user.getPassword())){
|
if(login.equals(user.getEmail()) && password.equals(user.getPassword())){
|
||||||
userFound = true;
|
userFound = true;
|
||||||
loginResponse.put("success", true);
|
loginResponse.put("success", true);
|
||||||
|
loginResponse.put("userId", user.getUserId());
|
||||||
|
|
||||||
//access codes
|
//access codes
|
||||||
JSONArray accessCodes = new JSONArray();
|
JSONArray accessCodes = new JSONArray();
|
||||||
|
|||||||
Reference in new issue
Block a user