ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Forgot Password works on frontend only (not for CP)

February 05, 2012 4:54pm

Subscribe [1]
  • #1 / Feb 05, 2012 4:54pm

    sprise

    9 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.

  • #2 / Feb 06, 2012 3:10pm

    Dan Decker

    7338 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!

     

  • #3 / Apr 30, 2012 4:03pm

    Peter Smith

    69 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 $1 !\.(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 (.*) <a href="https://tldomain.com%{request_uri}">https://tldomain.com%{request_uri}</a>
    </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…

  • #4 / May 01, 2012 2:26pm

    Dan Decker

    7338 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!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases