Index: .gitignore
===================================================================
--- .gitignore	(revision 29c0ed05a0ff3f024a6b10413869f3713f7fca12)
+++ .gitignore	(revision 83a5af4c7dc7eae7e0effc58ccea32e40d3da4f4)
@@ -41,2 +41,4 @@
 atlassian-ide-plugin.xml
 .gradletasknamecache
+
+# Client APP
Index: src/main/java/it/finki/tinki/controller/TestController.java
===================================================================
--- src/main/java/it/finki/tinki/controller/TestController.java	(revision 29c0ed05a0ff3f024a6b10413869f3713f7fca12)
+++ src/main/java/it/finki/tinki/controller/TestController.java	(revision 83a5af4c7dc7eae7e0effc58ccea32e40d3da4f4)
@@ -2,18 +2,9 @@
 
 import it.finki.tinki.model.Users.Account;
-import it.finki.tinki.model.Users.Company;
-import it.finki.tinki.model.Users.Team;
-import it.finki.tinki.model.Users.User;
-import it.finki.tinki.model.enumerator.AccountType;
 import it.finki.tinki.model.pojo.AccountLoginDataPojo;
-import it.finki.tinki.repository.CompanyRepository;
-import it.finki.tinki.repository.JobRepository;
-import it.finki.tinki.repository.TeamRepository;
-import it.finki.tinki.repository.UserRepository;
+import it.finki.tinki.model.pojo.AuthResponseDataPojo;
 import it.finki.tinki.service.AccountService;
 import org.springframework.web.bind.annotation.*;
-
-import java.util.HashMap;
-import java.util.Map;
+import org.springframework.web.server.ResponseStatusException;
 
 @RestController
@@ -28,6 +19,16 @@
 
     @PostMapping(path = "/login")
-    public Account testPage(@RequestBody AccountLoginDataPojo body){
-        return accountService.findUser(body.getAccount(), body.getPassword(), body.getType());
+    public AuthResponseDataPojo testPage(@RequestBody AccountLoginDataPojo body) throws ResponseStatusException {
+        Account a1 = accountService.findUser(body.getAccount(), body.getPassword(), body.getType());
+        AuthResponseDataPojo resp = new AuthResponseDataPojo();
+
+        if(a1!=null){
+            resp.setId(a1.getId());
+            resp.setEmail(a1.getEmail());
+            resp.setName(a1.getName());
+            resp.setType(a1.getAccountType());
+        }
+
+        return resp;
     }
 
Index: src/main/java/it/finki/tinki/model/pojo/AuthResponseDataPojo.java
===================================================================
--- src/main/java/it/finki/tinki/model/pojo/AuthResponseDataPojo.java	(revision 83a5af4c7dc7eae7e0effc58ccea32e40d3da4f4)
+++ src/main/java/it/finki/tinki/model/pojo/AuthResponseDataPojo.java	(revision 83a5af4c7dc7eae7e0effc58ccea32e40d3da4f4)
@@ -0,0 +1,19 @@
+package it.finki.tinki.model.pojo;
+
+import it.finki.tinki.model.enumerator.AccountType;
+import lombok.Data;
+
+@Data
+public class AuthResponseDataPojo {
+    Long id;
+    String email;
+    String name;
+    AccountType type;
+
+    public AuthResponseDataPojo() {
+        this.id = null;
+        this.email = "Wrong username or password!";
+        this.name = "Wrong username or password!";
+        this.type = null;
+    }
+}
Index: src/main/resources/application.properties
===================================================================
--- src/main/resources/application.properties	(revision 29c0ed05a0ff3f024a6b10413869f3713f7fca12)
+++ src/main/resources/application.properties	(revision 83a5af4c7dc7eae7e0effc58ccea32e40d3da4f4)
@@ -1,3 +1,3 @@
-server.port=3000
+server.port=9090
 
 spring.datasource.url=jdbc:h2:mem:testdb
