Page 1 of 1

Frontend Users module - Could not find an email address

Posted: Thu Jul 16, 2015 11:24 am
by f34nc015
Hi, after a lot of time, I have no clue at all about this:

Version:
CMSMS 1.11.11 “San Cristobal”
FEU 1.25.1
All module up to date

Settings:
Email address is username: NO
Allow duplicate emails: NO
Allow duplicate "forgot password" reminders?: YES

Data:
USER: "algo", member of GROUP "customer"

GROUP "customer" has these properties, among others:
contact_email - Email Address - required
contact_email_2 - Email Address - optional
(it tried with or without contact_email_2)

USER "algo" has these 2 fields correctly set to my working e-mail addresses

Template for "lost password" has been changed, but I tried with the original template again, and the problem is still here.

CMSMAILER tested and working.


Problem:
from the login page, I click on "Forgot Username/Password"
from the "password forgot" page, I put "algo", and click on "send password".

I receive this message: "Could not find an email address"


Thanks a lot for any help,
f

Re: Frontend Users module - Could not find an email address

Posted: Thu Jul 16, 2015 5:33 pm
by Dr.CSS
1) There is an email field preloaded in FEU so no need to make one...
2) I've always had problems with trying to use it with this set "Email address is username: NO"...

Re: Frontend Users module - Could not find an email address

Posted: Thu Jul 16, 2015 7:02 pm
by calguy1000
1. Your CMSMS and FEU versions are not the latest.
2. I just checked this in the latest code (exactly as described) and it worked fine here.

So I can only suggest that:
1. You ensure you are running PHP 5.4+
2. Upgrade your CMS and module versions (after taking a backup).

Re: Frontend Users module - Could not find an email address

Posted: Tue Jul 21, 2015 9:40 am
by f34nc015
ok thanks to both of you, I updated and after the usual freaky messages, it works.

The received link doesn't work on firefox 39, though, it just keeps loading.
It's ok on chrome.

I'm also not sure it sends an error message when we don't enter a strong password. But this may be a problem on our side.

Best,
f

Re: Frontend Users module - Could not find an email address

Posted: Fri Sep 18, 2015 3:02 pm
by nvtech
I have FEU module version 1.26 and same problem. The SQL code to retrieve the user's email address is this (lib/class.FrontEndUsersManipulator.php):
SELECT * FROM cms_module_feusers_propdefn,cms_module_feusers_properties WHERE name=title and type=2 and userid= ?

I have been using module for a while and upgraded numerous times (since V1.4.2) so not sure if this problem was introduced due to upgrades but I had created my own field named 'email' sometime ago when first creating users (maybe std email field not available then?).

When I checked the 'cms_module_feusers_propdefn' table, my field 'email' was listed but type=0. When I changed type= 2 for the field definition for email (name=email) in table 'cms_module_feusers_propdefn' all worked again with FEU module properly finding user's email based on their username and responding with a page that confirmed email address the email with reset instructions was sent to.