Update of /var/cvs/contributions/didactor2/src/core/java/nl/didactor/security
In directory james.mmbase.org:/tmp/cvs-serv11651
Modified Files:
Authentication.java
Log Message:
DIDACTOR-55
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/java/nl/didactor/security
See also: http://www.mmbase.org/jira/browse/DIDACTOR-55
Index: Authentication.java
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/core/java/nl/didactor/security/Authentication.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- Authentication.java 15 Jan 2008 11:15:47 -0000 1.32
+++ Authentication.java 22 Jan 2008 08:51:09 -0000 1.33
@@ -119,9 +119,9 @@
if (uc == null) {
log.warn("Logging out a user who is not logged in!
This cannot be reported!");
} else {
- Event event = new Event(uc.getIdentifier(),
request.getSession(true).getId(),
+ Event event = new Event(uc.getIdentifier(),
request,
null, null, null,
"LOGOUT", null, "logout");
- EventDispatcher.report(event, request, response);
+
org.mmbase.core.event.EventManager.getInstance().propagateEvent(event);
}
ac.logout(request, response);
}
@@ -257,10 +257,10 @@
session.setAttribute(REASON_KEY, null);
request.getSession(true).setAttribute("didactor-logincomponent", ac.getName());
Integer usernumber = uc.getUserNumber();
- Event event = new Event(uc.getIdentifier(),
request.getSession(true).getId(), null, null, null,
+ Event event = new Event(uc.getIdentifier(), request, null,
null, null,
"LOGIN", usernumber != null ?
usernumber.toString() : null,
"login");
- EventDispatcher.report(event, request, response);
+
org.mmbase.core.event.EventManager.getInstance().propagateEvent(event);
if (! uc.getAuthenticationType().equals(application)) {
return request(new UserContext(uc, application),
request);
} else {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs