<p>I'm working on a site with public registration and a manual approval flow for new users. The following settings for user accounts are active: <strong>Verify email addresses</strong>, <strong>Allow public registration</strong>, <strong>Suspend users by default</strong>. The workflow currently looks like this:</p>
<ol>
<li>A new user uses the frontend registration form to register for an account.</li>
<li>An admin manually approves the account (using the <strong>Unsuspend user</strong> action).</li>
<li>The admin sends the activation email using the <strong>Send activation email</strong> action.</li>
</ol>
<p>The problem is that since the activation email is sent from the CP, Craft appears to always use the CP-path for verification (so <code>/admin/verify-email</code> instead of <code>verifyemail</code>). The <a href="https://craftcms.com/docs/3.x/config/config-settings.html#verifyemailpath" rel="nofollow noreferrer"><code>verifyEmailPath</code> config</a> is ignored. And after clicking the verification link, the user is redirected to the CP login form instead of the frontend login form. The <a href="https://craftcms.com/docs/3.x/config/config-settings.html#verifyemailsuccesspath" rel="nofollow noreferrer"><code>verifyEmailSuccessPath</code> config</a> is ignored.</p>
<p>I guess the two options above only come into play if the verification email is sent automatically after the public registration (without manual approval). I haven't found a way to change the redirect for verification emails sent from the CP.</p>
<p>Is there a way to either change the path for email verification to the frontend path (<code>/verifyemail</code>) or change the redirect after verifying through the backend path (<code>/admin/verify-email</code>)?</p>

CC BY-SA 4.0
2021-08-19T11:23:41.483Z
That's because your new users have CP access in their permissions :)
Oli
CC BY-SA 4.0
2021-08-19T12:55:58.810Z
@Oli Thanks, that's good to know! I wasn't sure why it works differently than another Craft site I built recently, but that makes perfect thanks. Though I would still like to redirect those users to the frontend login form instead of the backend form, so it would be great if there's a way to do that.
MoritzLost
CC BY-SA 4.0
2021-08-20T10:39:19.040Z
The relationships/interplay between the User concepts of "suspended", "activated", and "verified" definitely need some attention in the Craft documentation. These 3 things are separate-but-not-separate in obtuse ways. I've built quite a few sites that have front end membership and I get confused every time about the general setup.
James Smith
<config><redirect><registration><frontend-form><verification>
Redirect to frontend login form after receiving email verification mail from CMS?
# Redirect to frontend login form after receiving email verification mail from CMS?

(Asked by: username_0 on 2021-08-19)

I'm working on a site with public registration and a manual approval flow for new users. The following settings for user accounts are active: **Verify email addresses**, **Allow public registration**, **Suspend users by default**. The workflow currently looks like this:

1. A new user uses the frontend registration form to register for an account.
2. An admin manually approves the account (using the **Unsuspend user** action).
3. The admin sends the activation email using the **Send activation email** action.

The problem is that since the activation email is sent from the CP, Craft appears to always use the CP-path for verification (so `/admin/verify-email` instead of `verifyemail`). The [`verifyEmailPath` config](https://craftcms.com/docs/3.x/config/config-settings.html#verifyemailpath) is ignored. And after clicking the verification link, the user is redirected to the CP login form instead of the frontend login form. The [`verifyEmailSuccessPath` config](https://craftcms.com/docs/3.x/config/config-settings.html#verifyemailsuccesspath) is ignored.

I guess the two options above only come into play if the verification email is sent automatically after the public registration (without manual approval). I haven't found a way to change the redirect for verification emails sent from the CP.

Is there a way to either change the path for email verification to the frontend path (`/verifyemail`) or change the redirect after verifying through the backend path (`/admin/verify-email`)?

**Tags:** config, redirect, registration, frontend-form, verification

> **Comments:**
> **username_1**: That's because your new users have CP access in their permissions :)  
> **username_0**: @username_1 Thanks, that's good to know! I wasn't sure why it works differently than another Craft site I built recently, but that makes perfect thanks. Though I would still like to redirect those users to the frontend login form instead of the backend form, so it would be great if there's a way to do that.  
> **username_2**: The relationships/interplay between the User concepts of "suspended", "activated", and "verified" definitely need some attention in the Craft documentation. These 3 things are separate-but-not-separate in obtuse ways. I've built quite a few sites that have front end membership and I get confused every time about the general setup.  

---

## 0 answers

