Prevent error notices by passing both arguments that are present in the `wp_login` action.
`get_userdata()` is simply an alias for `get_user_by()`
Merge pull request #12 from humanmade/wp-login-args

Prevent error notices by passing both arguments that are present in the `wp_login` action