0 Members and 1 Guest are viewing this topic.

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
If you click on forgot password and type in your password and it fails, then here's the fix.


In your getforgotpass.php make sure to find and delete this clause:


if ($config['forum_installed'] != '' && $config['forum_installed'] != 'None') {

      include_once(FORUM_DIR.$config['forum_installed'] . '_forum.php');
      
      forum_modifympass($pwd, $row['username']);

      $osDB = new osDateDB;}

This clause is talking about some stupid forum that is installed or not installed.  I mean who the hell cares about some damn forum when people want to reset their password?  I tried installing my forum and it failed the installation.  So my forum installation status is 1 or 0 or what I don't care and I don't know.  but this damn clause affected my forget password page.  Just erase it and youo got no more problem.

  The script will work again.


*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Forgot password function doesn't work? Here's the fix you need.
« Reply #1 on: May 03, 2017, 08:12:51 AM »
Hi alexchiu,

The forgot password sends a new password in osDateEvo v1.2 with no issue at all using the forgotpass.php,
not the getforgotpass.php.

If you talking about forum, it would be better to say what type of forum is installed before changing the script as you have to be logged into the dating script to have access to the forum.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Forgot password function doesn't work? Here's the fix you need.
« Reply #2 on: May 03, 2017, 09:34:37 AM »
I think that clause should be left out completely because 99% of the time it has absolutely nothing to do with a forum.  People forgot their password and they want to retrieve it or get a replacement.  Why talk about forum in the middle of a script like that?  Wasted me few hours just to find that bug.

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Forgot password function doesn't work? Here's the fix you need.
« Reply #3 on: May 03, 2017, 09:45:35 AM »
Hi alexchiu,

I tested the forgot password after seeing your post and it works with no errors, sends a new password as it should.

I mentioned the forum only because you did, as I didn't see any thing about a forum or a error at all.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

alexchiu

  • *
  • 43
  • Sup nigga
  • osDate Version: osDate Evo v1.2
Re: Forgot password function doesn't work? Here's the fix you need.
« Reply #4 on: May 03, 2017, 02:02:11 PM »
It probably happens to people who tried to install a forum and screwed up.  The script clearly asked about the forum.  I guess if you installed the forum correctly this error would not have occured.  But I was not so lucky.  anyways, after deleting that clause everything worked.

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: Forgot password function doesn't work? Here's the fix you need.
« Reply #5 on: May 03, 2017, 10:15:49 PM »
Hi alexchiu,

I have a forum installed and don't get the issue but if it works for you all good.

I think the reason it might look in the forum is because it uses the same password as the osDateEvo and more
than likely changes to the same new password also, which makes sense.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35