From c5a96f13012d29c70fb9f73635d2d6ad5d2fd4e8 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 Oct 2015 17:10:54 +0200 Subject: [PATCH] added log message --- .../mxchange/addressbook/beans/login/UserLoginWebBean.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java index 580b57c3..ffdf341b 100644 --- a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java @@ -16,6 +16,7 @@ */ package org.mxchange.addressbook.beans.login; +import java.text.MessageFormat; import java.util.Objects; import javax.enterprise.context.SessionScoped; import javax.faces.view.facelets.FaceletException; @@ -135,6 +136,9 @@ public class UserLoginWebBean implements UserLoginWebController { @Override public boolean isUserLoggedIn () { + // Trace message + System.out.println(MessageFormat.format("UserLoginWebBean:isUserLoggedIn: this.loggedInUser={0},this.templateType={1} - CALLED!", this.getLoggedInUser(), this.getTemplateType())); + // Compare instance return ((this.getLoggedInUser() instanceof User) && (Objects.equals(this.getLoggedInUser().getUserAccountStatus(), UserAccountStatus.CONFIRMED))); } -- 2.39.5