2

I am currently building an intranet. I have created a password reset and a set password form that is used on the front-end. However, admin users get redirected to the 'Craft' set password form. is there anyway possible to make all users use the front-end set password form for consistency?

Thanks.

5
  • Is it just admins or anyone with "access to the Control Panel" permissions?
    – Brad Bell
    Commented Jun 14, 2018 at 23:33
  • Yes for anyone with "access to the Control Panel" permissions and above. Commented Jun 15, 2018 at 9:38
  • Any ideas @bradbell? Commented Jun 17, 2018 at 18:48
  • Is this for Craft 2 or 3?
    – Brad Bell
    Commented Jun 19, 2018 at 0:02
  • Craft 2 @BradBell Commented Jun 19, 2018 at 8:01

1 Answer 1

2

Not without hacking up some core files, unfortunately.

You can see the logic Craft 2 uses to determine which set password template to render for a given request here: https://github.com/craftcms/cms/blob/develop-v2/src/controllers/UsersController.php#L1702-L1720

Basically, if a user has "accessCp" permissions (which admins certainly do), then they're going to get the Control Panel set password template.

2
  • Thanks for this @BradBell. I wouldn't want to hack the core scripts so will leave it be and put up with it this way. Incidentally you asked it if was Craft 2 vs 3. Is this possible in Craft 3? If so it might be worth adding this to the answer so it is useful if I upgrade to anyone else coming to this thread... Thanks. Commented Jun 22, 2018 at 8:03
  • Some of the user workflow logic has changed for Craft 3, but it looks like that bit is the same across both.
    – Brad Bell
    Commented Jun 22, 2018 at 21:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.