When it comes to website security, the more layers you can implement the better protected your website and its users will be. One great way to upgrade your WordPress website’s security is to enable passwordless login via email. Passwordless login allows users to easily sign in to their accounts without needing to remember a unique password. This type of login also helps minimise the risk of unauthorised access, as users can simply enter their email addresses to log in quickly and securely.
With the Login & Signup block from The Plus Blocks for Gutenberg, you can easily allow passwordless login by adding a magic link to your login form.
To check the complete feature overview documentation of The Plus Blocks for Gutenberg Login & Signup block, click here.
Requirement – This block is a part of The Plus Blocks for Gutenberg, make sure its installed & activated to enjoy all its powers.
To do this, add the block on the page, go to Forms > Type and select Login or Login & Register.
Select the appropriate layout from the Layout section.
Once your form fields are ready, go to the Login tab and click the +Add Field button.
From the Field dropdown, select Magic Link.
From the Content field, you can customise the magic link text.
In the Label and Placeholder fields, you can add the label and placeholder texts, respectively.
In the Button Text field, you can add the button text.
Then from the Custom Email section, you can customise the email message that will be sent to the user.
In the Subject field, you can add the email subject.
Then in the Email Message field, you can write the email message. Here you’ll have to use some shortcodes in the message.
- [tpgb_sitename] – For your website name.
- [tpgb_username] – For username.
- [tpgb_link] – For the magic link URL.
Finally, from the Select Page dropdown, you can select a specific page where users will be redirected after clicking on the magic link from their email.
Note: For any email related features such as Lost your password, Magic Link etc. you have to set up SMTP (Simple Mail Transfer Protocol) to send emails properly. You can use the free Fluent SMTP Plugin.