From 1d3ea26ac3b654427c88b30fcc140669bd24fffe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 10 Jun 2016 15:01:57 +0200 Subject: [PATCH] added missing language i18n strings + show logout form only to logged-in users ... MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../login/PizzaUserLoginWebSessionController.java | 12 ++++++++++-- web/user/login_logout.xhtml | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionController.java b/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionController.java index f5a841f4..b71a3f43 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/login/PizzaUserLoginWebSessionController.java @@ -40,19 +40,27 @@ public interface PizzaUserLoginWebSessionController extends Serializable { */ void setBaseTemplatePathName (final String baseTemplatePathName); + /** + * 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 doLogout (); + String doUserLogout (); /** * Getter for logged-in user instance diff --git a/web/user/login_logout.xhtml b/web/user/login_logout.xhtml index 27022217..8d8c61f1 100644 --- a/web/user/login_logout.xhtml +++ b/web/user/login_logout.xhtml @@ -15,7 +15,7 @@ - +

@@ -31,6 +31,10 @@
+ + + + -- 2.39.5