Corregido error al comprobar si el usuario tenía sesión iniciada en el

filtro de authorización.
This commit is contained in:
Marcos Garcia Nuñez
2019-12-08 17:59:18 +01:00
parent 1d036765c5
commit fac86a7c20
3 changed files with 27 additions and 20 deletions

View File

@@ -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;