summaryrefslogtreecommitdiffstats
path: root/src/web/websession.vala
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2018-06-28 01:03:02 +0200
committerSebastian Reichel <sre@ring0.de>2018-06-28 01:53:40 +0200
commitf466538a3527cd539c732d3abee481fa7a34fc2f (patch)
tree0a244c5b3594ee42d25744bdbdd3f0a44595c87b /src/web/websession.vala
parentc70d626e473c8cbdbd87125a256ca221c0c3fa23 (diff)
downloadserial-barcode-scanner-f466538a3527cd539c732d3abee481fa7a34fc2f.tar.bz2
all: Add DBusError to avoid warnings with valac 0.40
Diffstat (limited to 'src/web/websession.vala')
-rw-r--r--src/web/websession.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/websession.vala b/src/web/websession.vala
index ae3cafc..839d0a2 100644
--- a/src/web/websession.vala
+++ b/src/web/websession.vala
@@ -82,7 +82,7 @@ public class WebSession {
return result;
}
- private void setup_auth(int user) throws DatabaseError, IOError {
+ private void setup_auth(int user) throws DatabaseError, IOError, DBusError {
var auth = db.get_user_auth(user);
this.disabled = db.user_is_disabled(user);
this.superuser = auth.superuser;
@@ -92,7 +92,7 @@ public class WebSession {
this.logged_in = true;
}
- public void logout() throws DatabaseError, IOError {
+ public void logout() throws DatabaseError, IOError, DBusError {
if(logged_in) {
db.set_sessionid(user, "");
superuser = false;
@@ -103,7 +103,7 @@ public class WebSession {
}
}
- public WebSession(Soup.Server server, Soup.Message msg, string path, GLib.HashTable<string,string>? query, Soup.ClientContext client) throws DatabaseError, IOError {
+ public WebSession(Soup.Server server, Soup.Message msg, string path, GLib.HashTable<string,string>? query, Soup.ClientContext client) throws DatabaseError, IOError, DBusError {
var cookies = Soup.cookies_from_request(msg);
/* Check for existing session */