app/models/User.java
// Check is new user is registering a unique username.
Check is new user is registering a unique username.
Check is new user is registering a unique username .
public static User IsUnique(String username){
        User user = find.where().eq("username", username).findUnique();
        if (user != null) {
            return user;
        }
        return null;
    }
public static User IsUnique ( String username ) { User user = find . where ( ) . eq ( "username" , username ) . findUnique ( ) ; if ( user != null ) { return user ; } return null ; }
Check is new user is registering a unique username.
Check is new user is registering a unique username .