r17751: add create_token_from_username() fix