elloro / craft-login-link
Generate one-time login links from the terminal
Package info
github.com/elloro-nl/craft-login-link
Type:craft-plugin
pkg:composer/elloro/craft-login-link
6.0.2
2026-11-11 08:31 UTC
Requires
- craftcms/cms: ^6.0.0-beta.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Generate one-time login links from the terminal.
Requirements
- Craft CMS 6.0.0-beta.1+
- PHP 8.5+
Installation
composer require elloro/craft-login-link php artisan craft:plugin:install login-link
Usage
php artisan login-link <username-or-email> [--expiry=60]
Prints a URL that logs the user in and redirects to the control panel. --expiry is in minutes: default 60, maximum 1440.
- The link works once. It's a Craft route token with a usage limit of 1, so a second use, or a use after expiry, does nothing.
- The account must be able to log in at the moment the link is used: suspended, pending, locked and inactive users, and users without control panel access, are refused with a 403. A pending password reset doesn't block the link.
- Link scanners in mail and chat apps can open a link before you do and use it up. Send it through a channel that doesn't preview links, or generate a new one.