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 committed 2019-12-08 17:59:18 +01:00
1 parent 1d036765c5
commit fac86a7c20
3 files changed
+27 -20

No files matched your search

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