EllisLab text mark
Advanced Search
     
Forgot Password works on frontend only (not for CP)
Posted: 05 February 2012 05:54 PM   [ Ignore ]
Avatar
Joined: 2009-06-16
13 posts

Am working on a site and just noticed that if I try to reset a password from /system, it sends the first email but not the second (with password). If I go to the frontend and use the password utility, it works fine.

It’s probably my fault but if you could point me towards the solution, I would be so grateful. I click the link in my CP-version generated email and it doesn’t even get to reset_password, just redirects to the login form.

 Signature 

“Who were you DenverCoder9? What did you see?
[xkcd]

 
Posted: 06 February 2012 04:10 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi sprise,

I’m sorry you have trouble with the reset password feature. Let’s get that sorted out!

What version of ExpressionEngine are you using? If you access your Control Panel via http://domain.tld/admin.php does the feature work? Are you using .htaccess in anyway that might be interfering with this?

If you open /system/expressionengine/config/config.php, what is the value of:

$config['cp_url'''

Cheers!

 

 Signature 

How may I help you?

 
Posted: 30 April 2012 04:03 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2006-08-18
92 posts

Hey, we’re having this problem too! Since sprise never came back I’ll give my answers.

Just to reiterate, using the “Forgot password” form from the control panel sends an email with a link like:

http://www.tldomain.com/?ACT=18&id=7zxgxGrZ

Clicking that link takes you to the login page, but no 2nd email with the new temporary password ever arrives. (Yup, checked spam folder.)

We’re running EE v2.3.1 - Build: date 20111017

http://domain.tld/admin.php does not work either.

.htaccess has the following:

<IfModule mod_rewrite.c>
   
RewriteEngine On

   
# Removes index.php
   
RewriteCond $!\.(gif|jpe?g|png)$ [NC]
   RewriteCond 
%{REQUEST_FILENAME} !-f
   RewriteCond 
%{REQUEST_FILENAME} !-d
   RewriteRule 
^(.*)$ /index.php/$1 [L]

   RewriteCond 
%{ENV:SECURE_REDIRECT} !=on
   RewriteCond 
%{REQUEST_URI} ^/membership.*
   
RewriteRule (.*) https://tldomain.com%{REQUEST_URI}
</IfModule>

RewriteCond %{QUERY_STRING}  fb_xd_fragment
RewriteRule ^(.*)$ /$1[R=301] #remove query string 

(That last bit is to fix some wonkiness with a facebook Like thing.)

config.php has this:
$config[‘cp_url’] = “http://www.tldomain.com/customsys/”;

Obviously I’ve changed domain and system names.

Reset password works fine from the front end so this isn’t a pressing need, but if it’s an easy fix…

 
Posted: 01 May 2012 02:26 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Peter,

Thanks for all your information!

Would you mind changing your cp_url to this:

$config['cp_url'"http://www.tldomain.com/admin.php"

or

$config['cp_url'"http://www.tldomain.com/customsys/index.php"

Let me know if that sorts it out.

Cheers!

 Signature 

How may I help you?