(domain)
return min(128 - len(cc_user_domain(domain)) - 1, 80)
The auth_user table only allows for usernames up to 128 characters long.
    The code used to allow for usernames up to 80 characters, but that
    didn't properly take into consideration the fact that the domain and
    site name vary.
The auth_user table only allows for usernames up to 128 characters long.
    The code used to allow for usernames up to 80 characters, but that
    didn't properly take into consideration the fact that the domain and
    site name vary.
The auth_user table only allows for usernames up to 128 characters long . The code used to allow for usernames up to 80 characters but that didn t properly take into consideration the fact that the domain and site name vary .
def get_mobile_worker_max_username_length(domain):
    """
    The auth_user table only allows for usernames up to 128 characters long.
    The code used to allow for usernames up to 80 characters, but that
    didn't properly take into consideration the fact that the domain and
    site name vary.
    """
    return min(128 - len(cc_user_domain(domain)) - 1, 80)
def get_mobile_worker_max_username_length ( domain ) : return min ( 128 - len ( cc_user_domain ( domain ) ) - 1 , 80 )