The One Time Login Mailer Plugin is for Grav CMS.
It sends a One Time Login Link to a known user by email. The actual logging in is handled by the One Time Login Plugin.
Installing the One Time Login Mailer plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:
bin/gpm install one-time-login-mailer
This will install the One Time Login Mailer plugin into your /user/plugins
directory within Grav. Its files can be found under /your/site/grav/user/plugins/one-time-login-mailer
.
To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins
. Then, rename the folder to one-time-login-mailer
. You can find these files on GitHub or via GetGrav.org.
You should now have all the plugin files under
/your/site/grav/user/plugins/one-time-login-mailer
NOTE: This plugin is a modular component for Grav which requires Grav and the Error and Problems to operate.
If you use the admin plugin, you can install directly through the admin plugin by browsing the Plugins
tab and clicking on the Add
button.
The pluging requires the One Time Login Plugin and the Email Plugin.
Before configuring this plugin, you should copy the user/plugins/one-time-login-mailer/one-time-login-mailer.yaml
to user/config/plugins/one-time-login-mailer.yaml
and only edit that copy.
Here is the default configuration and an explanation of available options:
enabled: true
Note that if you use the admin plugin, a file with your configuration, and named one-time-login-mailer.yaml will be saved in the user/config/plugins/
folder once the configuration is saved in the admin.
Currently the email sender address, the subject and email message text are hard coded in the one-time-login-mailer.php
file.
The plugin relies on a properly configured Email Plugin to send out the actual email.