aaemnnosttv / wp-cli-login-command

Log in to WordPress with secure passwordless magic links.
https://aaemnnost.tv/wp-cli-commands/login/
MIT License
292 stars 47 forks source link

Add option for a post-login redirect #34

Closed aaemnnosttv closed 4 years ago

aaemnnosttv commented 4 years ago

Currently, login links redirect you to the admin dashboard upon successfully logging in.

However, it is sometimes known ahead of time that redirecting to another URL instead would be preferable or more direct.

To accommodate this, a new option such as --redirect=<url> option should be added to the login create command. This redirect should be stored internally and wouldn't be part of the generated link itself so it would not be changeable once created.