]> git.mxchange.org Git - juser-login-core.git/commitdiff
sorted new member
authorRoland Haeder <roland@mxchange.org>
Thu, 12 May 2016 19:09:44 +0000 (21:09 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 12 May 2016 19:09:44 +0000 (21:09 +0200)
src/org/mxchange/jusercore/model/user/UserUtils.java

index 81749b3f5158893175f13c2d9d30e6ecf4a63f8f..bd2c898ae0558f9343b910a6404c690dd4219aeb 100644 (file)
@@ -124,10 +124,23 @@ public class UserUtils implements Serializable {
                return encryptedPassword;
        }
 
+       /**
+        * Generates a pseudo-random user name
+        * <p>
+        * @return User name
+        */
+       public static String generateRandomUserName () {
+               // User name's format is normally "user" + random number (10 digits)
+               String userName = String.format("user%d", RANDOM_NUMBER_GENERATOR.nextInt(10000000)); //NOI18N
+
+               // Return it
+               return userName;
+       }
+
        /**
         * Checks if password from container matches the updatedUser's password
         * <p>
-        * @param container Container holding user instance and unencrypted password
+        * @param container   Container holding user instance and unencrypted password
         * @param updatedUser Updated user instance from database
         * <p>
         * @return Whether the password matches
@@ -188,19 +201,6 @@ public class UserUtils implements Serializable {
                return encryptedPassword.equals(container.getUser().getUserEncryptedPassword());
        }
 
-       /**
-        * Generates a pseudo-random user name
-        * <p>
-        * @return User name
-        */
-       public static String generateRandomUserName () {
-               // User name's format is normally "user" + random number (10 digits)
-               String userName = String.format("user%d", RANDOM_NUMBER_GENERATOR.nextInt(10000000)); //NOI18N
-
-               // Return it
-               return userName;
-       }
-
        /**
         * No instance from this class
         */