From 76bfb287b51bd97c9ca0bfc4e7760b7ee8e15b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Smodi=C5=A1?= Date: Thu, 8 Oct 2015 18:56:48 +0200 Subject: Reworked session handling. * All requests have a session ID, except for the initial create_session system messages. * User session can be in an authenticated or anonymous state. * In anonymous state it is not possible to perform user actions. * Logout has been implemented. * Sessions timeout and are cleared after a period of inactivity (1 hour). * Bugfixed the lang setting handling. * Renamed get_problem -> get_current_solution, return only the user's current solution, not the whole problem data. --- errors/session.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'errors') diff --git a/errors/session.py b/errors/session.py index 06916c3..a09c4ec 100644 --- a/errors/session.py +++ b/errors/session.py @@ -16,4 +16,7 @@ class PasswordChangeFailed(Exception): pass class RequestProcessingError(Exception): - pass \ No newline at end of file + pass + +class NotLoggedIn(Exception): + pass -- cgit v1.2.1