]> git.mxchange.org Git - jfinancials-war.git/commitdiff
This business method should better return a redirection target
authorRoland Haeder <roland@mxchange.org>
Wed, 7 Oct 2015 10:30:57 +0000 (12:30 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 7 Oct 2015 10:30:57 +0000 (12:30 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/addressbook/beans/login/UserLoginWebBean.java
src/java/org/mxchange/addressbook/beans/login/UserLoginWebController.java

index 7c22e5473eeca9fc2d6b7e14c7cf37fa50e7ef06..afacfbf93da17df600aa437021fc54e4dde6fc11 100644 (file)
@@ -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
index f02bae1bd4d764d42197dc42808973121018aee4..1e807a64cd73d988e779633e4947772a655e6d69 100644 (file)
@@ -28,8 +28,10 @@ public interface UserLoginWebController extends Serializable {
 
        /**
         * Logins the user, if the account is found, confirmed and unlocked.
+        * <p>
+        * @return Redirect target
         */
-       public void doLogin ();
+       public String doLogin ();
 
        /**
         * Getter for logged-in user instance