Commit 60351b62 authored by wannes's avatar wannes
Browse files

Add error message when session is expired

parent 01d7be4f
......@@ -124,6 +124,10 @@ public class UserRegistration extends ResourceBase {
UUID id = UUID.fromString((String) data.get("id"));
Registration reg = Registration.getActiveRegistrations().get(id);
if (reg == null) {
return clientError("REGISTRATION_EXPIRED", Status.CLIENT_ERROR_BAD_REQUEST);
}
try {
if (data.containsKey("user")) {
// finalize registration
......
......@@ -16,4 +16,5 @@ INVALID_DATE_FORMAT=The date entered is in an invalid format
IP_ADDRESS_LEASE_TOO_LARGE=The amount of IP leases you have requested is too large
MAX_ONE_RAW_CERT=Only one raw certificate request allowed per call
ANOTHER_CLIENT_CERT_ACTIVE=There can be only one active certificate assigned to a client
REKEY_USING_SAME_KEY=Rekeying using the old key is frowned upon
\ No newline at end of file
REKEY_USING_SAME_KEY=Rekeying using the old key is frowned upon
REGISTRATION_EXPIRED=Your registration session expired, please start again.
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment