From: Roland Haeder Date: Thu, 15 Oct 2015 15:10:54 +0000 (+0200) Subject: added log message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c5a96f13012d29c70fb9f73635d2d6ad5d2fd4e8;p=jfinancials-war.git added log message --- 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))); }