auto-login
Descriptionβ
Generates a one-time URL for instant PrestaShop back-office access without entering credentials.
Usageβ
dvs auto-login [employee_id]
Argumentsβ
| Argument | Description |
|---|---|
employee_id | Optional. PrestaShop employee ID to log in as. Defaults to last used ID or 1. |
Examplesβ
# Generate auto-login URL for default employee
dvs auto-login
# Generate auto-login URL for employee ID 2
dvs auto-login 2
Outputβ
[β] Auto-login URL generated for employee ID 1
https://mysite.dvs.sh/adminXXX/?dvs_autologin=abc123...
Securityβ
- Token is single-use (deleted after successful login)
- Token is 64 characters (256 bits) cryptographically random
- Timing-safe comparison prevents timing attacks
Notesβ
- The employee ID is remembered for subsequent calls
- Works with DVS UI for graphical access
- Requires the application to be running