]> git.mxchange.org Git - juser-login-core.git/commitdiff
added column to save whether the user should change password (to new) after login...
authorRoland Häder <roland@mxchange.org>
Mon, 1 Aug 2016 12:39:39 +0000 (14:39 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 1 Aug 2016 12:39:39 +0000 (14:39 +0200)
src/org/mxchange/jusercore/model/user/LoginUser.java
src/org/mxchange/jusercore/model/user/User.java

index 155f413e3bf08ce5a3bffbce380d75a7ed539613..ebd11a4f76bc061e602cd1d2c512e6db21e9f406 100644 (file)
@@ -135,9 +135,15 @@ public class LoginUser implements User {
        /**
         * User locale
         */
-       @Column(name = "user_locale")
+       @Column (name = "user_locale")
        private Locale userLocale;
 
+       /**
+        * Whether the user must change password after login
+        */
+       @Column (name = "user_must_change_password")
+       private Boolean userMustChangePassword;
+
        /**
         * User name
         */
@@ -296,6 +302,16 @@ public class LoginUser implements User {
                this.userLocale = userLocale;
        }
 
+       @Override
+       public Boolean getUserMustChangePassword () {
+               return this.userMustChangePassword;
+       }
+
+       @Override
+       public void setUserMustChangePassword (final Boolean userMustChangePassword) {
+               this.userMustChangePassword = userMustChangePassword;
+       }
+
        @Override
        public String getUserName () {
                return this.userName;
index 8bdd4c7bfba5a094eb3a12a2f21d2a6d89378073..4bb0f051ba0d22c04fba5dd12c128bc34d928520 100644 (file)
@@ -205,6 +205,20 @@ public interface User extends Serializable {
         */
        void setUserLocale (final Locale userLocale);
 
+       /**
+        * Getter for flag if user needs to change password
+        * <p>
+        * @return Flag if user needs to change password
+        */
+       Boolean getUserMustChangePassword ();
+
+       /**
+        * Setter for flag if user needs to change password
+        * <p>
+        * @param userMustChangePassword Flag if user needs to change password
+        */
+       void setUserMustChangePassword (final Boolean userMustChangePassword);
+
        @Override
        boolean equals (final Object object);