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=b8b1dc62974ec2c2596832a45aaf446c9ca56fdc;p=addressbook-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/addressbook/beans/login/AddressbookUserLoginWebSessionController.java b/src/java/org/mxchange/addressbook/beans/login/AddressbookUserLoginWebSessionController.java index 1e74b836..91cc87a5 100644 --- a/src/java/org/mxchange/addressbook/beans/login/AddressbookUserLoginWebSessionController.java +++ b/src/java/org/mxchange/addressbook/beans/login/AddressbookUserLoginWebSessionController.java @@ -40,12 +40,27 @@ public interface AddressbookUserLoginWebSessionController 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 @@ -103,4 +118,5 @@ public interface AddressbookUserLoginWebSessionController extends Serializable { * @return If current password matches */ boolean ifCurrentPasswordMatches (); + } diff --git a/web/user/login_logout.xhtml b/web/user/login_logout.xhtml new file mode 100644 index 00000000..8d8c61f1 --- /dev/null +++ b/web/user/login_logout.xhtml @@ -0,0 +1,40 @@ + + + + + #{msg.PAGE_TITLE_LOGIN_USER_LOGOUT} + + + #{msg.CONTENT_TITLE_LOGIN_USER_LOGOUT} + + + + +

+
+ +
+ +
+ +
+ + +
+ + + + + + + +