mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
added logging for unauthorized user creation request
This commit is contained in:
@@ -1962,6 +1962,7 @@ implements ReplicableSecurityService, ClearStateTestSupport {
|
||||
SecurityUtils.getSubject().checkPermission(identifier.getStringPermission(DefaultActions.CREATE));
|
||||
result = createActionReturningCreatedObject.call();
|
||||
} catch (AuthorizationException e) {
|
||||
logger.warning("Unauthorized request to create user with name \""+username+"\": "+e.getMessage());
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
|
||||
Reference in New Issue
Block a user