Corregido error al comprobar si el usuario tenía sesión iniciada en el
filtro de authorización.
This commit is contained in:
@@ -48,11 +48,7 @@ public class LoginMBean extends ManagedBeanBase {
|
||||
|
||||
if (username != null && password != null) {
|
||||
try {
|
||||
Properties props = System.getProperties();
|
||||
Context ctx = new InitialContext(props);
|
||||
SystemAdminFacadeRemote remoteManager = (SystemAdminFacadeRemote) ctx.lookup("java:app/MyHealth.jar/SystemAdminFacadeBean!ejb.systemAdmin.SystemAdminFacadeRemote");
|
||||
|
||||
usr = remoteManager.login(username, password);
|
||||
usr = this.getRemoteManagerSystemAdmin().login(username, password);
|
||||
|
||||
if (usr != null) {
|
||||
loggedIn = true;
|
||||
|
||||
Reference in New Issue
Block a user