Fix warning in new rest api key generation
Merge pull request #4144 from kloon/fix_api_user_profile_warning

Fix warning in new rest api key generation