WordPress.org

Ready to get started?Download WordPress

Forums

Sideways8 Custom Login and Registration
[resolved] Forgot Password Not Reseting Password (22 posts)

  1. livninctry
    Member
    Posted 1 year ago #

    I am having some issues with the password reset function. When you click the link for forgot password it allows you to put in user name and it does send out the email for reset. When you click that link it does bring you back to the website and the form for resetting the password. Once you fill out the new password and hit submit, it acts as though everything has worked. However, once you try to login with the new password it says you have wrong password, but the old password still works.

    Long story short it is not resetting the password. Any help would be great.

    website is at:
    http://www.dev.hoaconnections.com/venturahoa

    Thank you for your help.

    http://wordpress.org/extend/plugins/s8-custom-login-and-registration/

  2. livninctry
    Member
    Posted 1 year ago #

    As a quick follow up... I just tried turning off all other plugins and still have the same issue. I am using the latest version of WordPress and the Suffusion theme.

  3. Sideways8 Interactive, LLC
    Member
    Plugin Author

    Posted 1 year ago #

    Have you tried using the 2012 theme?

  4. livninctry
    Member
    Posted 1 year ago #

    No I have not tried that theme yet, but am very partial to Suffusion and think that it is pretty superior to everything I have seen in regards to themes. I really appreciate your quick response, but if I have to change themes I will research some other alternatives before making that switch.

    Thanks again and best wishes for a great 2013...

  5. Sideways8 Interactive, LLC
    Member
    Plugin Author

    Posted 1 year ago #

    Could you temporarily try 2012?

    Also, have you created a Private Page and assigned it to a user?

  6. livninctry
    Member
    Posted 1 year ago #

    Ok, just tried 2012 and have the same errors associated with the forgot password.

    I have not created any private pages for users.

  7. Sideways8 Interactive, LLC
    Member
    Plugin Author

    Posted 1 year ago #

    If you have not created any private pages you will get a blank page. Please try to create one, then try again.

  8. livninctry
    Member
    Posted 1 year ago #

    I miss understood what you were saying. I did create the landing page for the password reset and was able to get it to show the input boxes requesting the new password and to confirm new password. You would then hit submit and the system messages said everything is fine. However, when you tried to login using the new password the system acts as if the password was never changed. So, new password would not work, but old password would still work.

  9. Sideways8 Interactive, LLC
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, mixed up our plugins. We are looking into the issue with the password reset and will hopefully have a fix out soon after returning from our holiday break.

  10. RogerSWD
    Member
    Posted 1 year ago #

    What is the status on this fix?

    Thank you.

  11. JamesAitchison
    Member
    Posted 1 year ago #

    I'm also experiencing this problem. Has a fix been released?

  12. Alexandru Muscalu
    Member
    Posted 1 year ago #

    Have founded a fix for this problem.

    The last line (return false) in function "reset_shortcode" from file 's8-login-registration.php' must be replaced with:

    $tmp = array();
            if(!empty($hide_links)) {
                // Hide our links!
                $hide = explode(',', $hide_links);
                foreach($hide as $link) {
                    $link = strtolower(trim($link));
                    if($link == 'login') $tmp['login'] = false;
                    elseif($link == 'register') $tmp['register'] = false;
                    elseif($link == 'forgot') $tmp['forgot'] = false;
                }
            }
            $args = array_merge(array('forgot' => true, 'register' => true, 'login' => true), $tmp);
            ob_start();
            s8_clr_get_form($action, $args);
            return ob_get_clean();

    Need also to replace following line from file '/inc/forms.php':

    <form name="pass-reset" action="<?php echo home_url('/'.s8_login_registration::ep_login.'/?action=rp&key='.$_GET['key']); ?>" method="post" class="s8_form reset_form">

    with:

    <form name="pass-reset" action="<?php echo home_url('/'.s8_login_registration::ep_login.'/?action=rp&key='.$_GET['key'].'&login='.$_GET['login']); ?>" method="post" class="s8_form reset_form">

  13. aseem.gautam
    Member
    Posted 1 year ago #

    I am facing the same problem. First the reset password was opening blank. No content.

    had to replace
    case 'rp': // Password reset
    with
    case 'reset': // Password reset

    With this the reset page started showing. Now on clicking the change password button - the form redirects to login form. One thing to note - user_password_reset() function is never invoked.

    http://www.compf.net

    @alexdeveloper: I could not find "reset_shortcode" function in s8-login-registration.php. Could you please be more specific? thx.

  14. Alexandru Muscalu
    Member
    Posted 1 year ago #

    Hi,

    I have version 0.8.3

    At line 502 you will find the function reset_shortcode.
    This function should be replaced (from line 502 to 525) with:

    function reset_shortcode($atts) {
            $s8_internal = $hide_links = '';
            extract(shortcode_atts(array('s8_internal' => 'false', 'hide_links' => ''), $atts));
            $action = 'reset';
            if($s8_internal == 'true') {
                $args = array('forgot' => false, 'register' => false, 'login' => false);
                $form_text = get_option('s8_custom_login_form_text');
                if(!is_array($form_text)) $form_text = array();
                if($form_text[$action]) {
                    if(strpos($form_text[$action], '%FORM%') !== false) {
                        $output = explode('%FORM%', $this->prepare_content($form_text[$action]), 2);
                        echo $output[0];
                        s8_clr_get_form($action, $args);
                        echo $output[1];
                    }
                    else {
                        echo $this->prepare_content($form_text[$action]);
                        s8_clr_get_form($action, $args);
                    }
                    return true;
                }
            }
            $tmp = array();
            if(!empty($hide_links)) {
                // Hide our links!
                $hide = explode(',', $hide_links);
                foreach($hide as $link) {
                    $link = strtolower(trim($link));
                    if($link == 'login') $tmp['login'] = false;
                    elseif($link == 'register') $tmp['register'] = false;
                    elseif($link == 'forgot') $tmp['forgot'] = false;
                }
            }
            $args = array_merge(array('forgot' => true, 'register' => true, 'login' => true), $tmp);
            ob_start();
            s8_clr_get_form($action, $args);
            return ob_get_clean();
        }

    If you fail to find this function maybe you have another version and I advice you to update and apply the fix.
    Please see also my previos post and replace the code in file /inc/forms.php also.

    Hope this helps.

  15. aseem.gautam
    Member
    Posted 1 year ago #

    It's still not fixed. Even after the changes mentioned by alex above.

  16. bentyla
    Member
    Posted 1 year ago #

    This works! Thanks Alex!! asseem.gautam, don't forget to replace the code in file /inc/forms.php also.

  17. MrsAngelD
    Member
    Posted 1 year ago #

    I can't seem to find the code I need to replace. Is any version of this plugin with the fix in place, even a developer version? I really need the reset password feature to work.

  18. MrsAngelD
    Member
    Posted 1 year ago #

    Even a copy of the file with the fix already in place would be great.

  19. MrsAngelD
    Member
    Posted 1 year ago #

    Ok so apparently my file is different from the one mentioned above by Alex. I was able to fix this, by editing s8-login-registration.php

    I found
    function reset_shortcode

    at line 1003

    I replaced the final
    (return false)

    line in the function with the code

    $tmp = array();
            if(!empty($hide_links)) {
                // Hide our links!
                $hide = explode(',', $hide_links);
                foreach($hide as $link) {
                    $link = strtolower(trim($link));
                    if($link == 'login') $tmp['login'] = false;
                    elseif($link == 'register') $tmp['register'] = false;
                    elseif($link == 'forgot') $tmp['forgot'] = false;
                }
            }
            $args = array_merge(array('forgot' => true, 'register' => true, 'login' => true), $tmp);
            ob_start();
            s8_clr_get_form($action, $args);
            return ob_get_clean();

    As mentioned above by Alex

    and then I went into '/inc/forms.php' as mentioned by Alex and replaced

    <form name="pass-reset" action="<?php echo home_url('/'.s8_login_registration::ep_login.'/?action=rp&key='.$_GET['key']); ?>" method="post" class="s8_form reset_form">

    With

    <form name="pass-reset" action="<?php echo home_url('/'.s8_login_registration::ep_login.'/?action=rp&key='.$_GET['key'].'&login='.$_GET['login']); ?>" method="post" class="s8_form reset_form">

    And my password resets are now working.

    It would be really great if this simple fix could make it into the posted plugin.

  20. Sideways8 Interactive, LLC
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the delay with this. We are hoping we are now where we can more regularly look into issues and release fixes. This issue should be fixed in the latest version (0.8.4, due out later today).

    Also, mrsangeld, I would make sure you reinstall from the WordPress.org repository as that file should not have more than around 665 lines. Having over 1000 lines in the s8-login-registration.php file seems very suspicious.

  21. MrsAngelD
    Member
    Posted 1 year ago #

    Also, mrsangeld, I would make sure you reinstall from the WordPress.org repository as that file should not have more than around 665 lines. Having over 1000 lines in the s8-login-registration.php file seems very suspicious.

    I installed the plugin using the wordpress interface for installing plugins. I never manually downloaded the plugin at all. I'm not sure why my files would be different.

  22. Sideways8 Interactive, LLC
    Member
    Plugin Author

    Posted 1 year ago #

    Interesting. I would delete the plugin you have an reinstall (or, just upgrade to the version that we just released a few days ago)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.