Fix undefined variable $user in create_key
Merge pull request #9 from liwo/bugfix/undefined-variable-user

Fix undefined variable $user in create_key