I was facing problems with CB login, even with SMF CB plugin published. Tracing the code, I found out that, for some unknown reason (could be CB architecture?) users imported from SMF were could not login (wrong password).
So, I decided to try a quick'n'dirty hack to CB code, as follows:
In comprofiler.php, around line 1307:
Code:
} else {
$resultError = "cb login"._LOGIN_INCORRECT;
}
$resultError = "cb login"._LOGIN_INCORRECT;
}
I changed it into this:
Code:
} else {
$jsmf =& new jsmfFrontend();
if(!$jsmf->doLogin(TRUE))
$resultError = "cb login"._LOGIN_INCORRECT;
}
$jsmf =& new jsmfFrontend();
if(!$jsmf->doLogin(TRUE))
$resultError = "cb login"._LOGIN_INCORRECT;
}
What this piece of code does, is, if a joomla login fails, it tries to login via JSMF (which, in turn, will update password in Joomla!).
In my test environment, it works.
Well, this is a hack solution. Another possible solution I thought of (in order not to change CB code) would be to create a function in SMF CB plugin code which would perform _isValidUser function and would update Joomla! password accordingly.
Anyway, do you think that this is a "safe" hack?
Thank you.
Forum 




I found a fix.





