From 90a9ca76e2794cbcc0349dc73b0f6ee565aaf3e7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 7 Oct 2015 12:30:57 +0200 Subject: [PATCH] =?utf8?q?This=20business=20method=20should=20better=20ret?= =?utf8?q?urn=20a=20redirection=20target=20Signed-off-by:Roland=20H=C3=A4d?= =?utf8?q?er=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/addressbook/beans/login/UserLoginWebBean.java | 5 ++++- .../addressbook/beans/login/UserLoginWebController.java | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java index 7c22e547..afacfbf9 100644 --- a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java +++ b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java @@ -77,7 +77,7 @@ public class UserLoginWebBean implements UserLoginWebController { } @Override - public void doLogin () { + public String doLogin () { // Get user instance User user = this.userController.createUserInstance(); @@ -91,6 +91,9 @@ public class UserLoginWebBean implements UserLoginWebController { // Throw again throw new FaceletException(ex); } + + // All fine + return "login"; //NOI18N } @Override diff --git a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java index f02bae1b..1e807a64 100644 --- a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java +++ b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java @@ -28,8 +28,10 @@ public interface UserLoginWebController extends Serializable { /** * Logins the user, if the account is found, confirmed and unlocked. + *

+ * @return Redirect target */ - public void doLogin (); + public String doLogin (); /** * Getter for logged-in user instance -- 2.39.5