aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/web/client/model/DataService.java2
-rw-r--r--src/org/traccar/web/server/model/DataServiceImpl.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/web/client/model/DataService.java b/src/org/traccar/web/client/model/DataService.java
index 2bb78832..a693b6e6 100644
--- a/src/org/traccar/web/client/model/DataService.java
+++ b/src/org/traccar/web/client/model/DataService.java
@@ -29,7 +29,7 @@ import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("dataService")
public interface DataService extends RemoteService {
- User authenticated();
+ User authenticated() throws IllegalStateException;
User login(String login, String password);
diff --git a/src/org/traccar/web/server/model/DataServiceImpl.java b/src/org/traccar/web/server/model/DataServiceImpl.java
index 6e99897b..2a148e25 100644
--- a/src/org/traccar/web/server/model/DataServiceImpl.java
+++ b/src/org/traccar/web/server/model/DataServiceImpl.java
@@ -116,7 +116,7 @@ public class DataServiceImpl extends RemoteServiceServlet implements DataService
}
@Override
- public User authenticated() {
+ public User authenticated() throws IllegalStateException {
return getSessionUser();
}