From: Roland Häder Date: Fri, 10 Jun 2016 13:01:57 +0000 (+0200) Subject: added missing language i18n strings + show logout form only to logged-in users ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=67c7924e1191c51d8d23401bbf4ef51499033902;p=jjobs-war.git added missing language i18n strings + show logout form only to logged-in users ... Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java index a0c6aba1..899d64f9 100644 --- a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java @@ -314,6 +314,7 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J // Trace message // NOISY-DEBUG System.out.println(MessageFormat.format("JobsUserLoginWebSessionBean:isUserLoggedIn: this.userLoggedIn={0} - EXIT!", this.userLoggedIn)); + // Return it return this.userLoggedIn; } diff --git a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java index c99df245..3a131e88 100644 --- a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java +++ b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java @@ -62,12 +62,27 @@ public interface JobsUserLoginWebSessionController extends Serializable { */ void setTemplateType (final String templateType); + /** + * Logout for administrator area. If a logged-in user instance exists, it is + * being logged-out, too. + *

+ * @return Outcome (should be redirected) + */ + String doAdminLogout (); + /** * Logins the user, if the account is found, confirmed and unlocked. *

* @return Redirect target */ - String doLogin (); + String doUserLogin (); + + /** + * Logout for current user by invalidating the current session. + *

+ * @return Outcome (should be redirected) + */ + String doUserLogout (); /** * Getter for logged-in user instance