WordPress Two Factor Authentication (CMAUTH) - 2FA Methods - Email Link


Email link

Back to User Guide

Authentication Methods

Overview | Google Authenticator | Email Code | Email Link | Mobile Phone SMS

To configure email template for Email code verification in the WordPress Two Factor Authentication plugin, navigate to Admin Dashboard → CM Secure Login Pro â†’ Email Link tab.

Confirmation settings

Confirmation option - WP 2FA Plugin
Confirmation option
  • Check for the login confirmation every X seconds - After the user logins with the unique link, the server continually checks for confirmation, to evaluate if the user came from a legitimate source. Here you can set the the interval of that check in seconds. Be careful, as this setting that may affect server performance - a lower value might overload it, depending of its capability.

Email Template

The fields accept RTF, HTML editing and shortcodes.

Email template - WordPress Login SMS Verification
Email template
  • Subject for the email with code - You can use the following shortcodes:
    • [blogname] - Show blog name.
    • [siteurl] - Show site URL.
    • [userdisplayname] - Show user display name.
    • [userlogin] - Show user login.
    • [useremail] - Show user email.
  • Body for the email with code - You can use the following shortcodes:
    • [blogname] - Show blog name.
    • [siteurl] - Show site URL.
    • [userdisplayname] - Show user display name.
    • [userlogin] - Show user login.
    • [useremail] - Show user email.
    • [link] - Show the link that user have to use to login. Important: the email body template MUST contain this shortcode in order to let the user login.
    • [usertime] - Show the current time of the user. Note: this shortcode was introduced in version 1.8.2.
    • [userip] - Show the IP address of the user used for a login attempt. Note: this shortcode was introduced in version 1.8.2.
    • [userbrowser] - Show the browser info of the user. Note: this shortcode was introduced in version 1.8.2.

An important note about [link] is that it generates a URL. As such, it must be placed in the text as a hyperlink. Two examples:

  • With the visual editor:

    Adding link using Visual editor - 2 Factor Authentication for WordPress
    Adding link using Visual editor
  • With HTML:

    Using link using Text editor - WordPress Two Step Authentication
    Using link using Text editor

Confirmation page

Confirmation page settings - WordPress Enable 2FA
Confirmation page settings
  • URL for the back link - The user will be directed to this link after clicking the confirmation email. If the field is left blank, the user will be directed to the wp-admin.
  • Enable auto redirect to backlink - Redirects the user to the backlink if the login is successful.

More information about the WordPress Two Factor Authentication plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.