Page 1 of 1

FEU 1.28 - Front end users cannot login

Posted: Thu Jan 28, 2016 9:44 pm
by npeg
CMSMS 1.11.13 and FEU 1.28.

Installed FEU via the module manager and re-read the FEU documentation and:
setup 3 properties (fname, lname, company), then set up 1 group and created a user for that group. Then, I created a login template with {FrontEndUsers form="login"} above the {$maincontent} tag and created a login page which uses that template.

Then, under 'settings' under FEU Management, i entered a page alias to jump to after login ('repdist-home') and reviewed all other settings.

On that page (w/alias 'repdist-home'), I set content type to 'Protected content', checked that my user group is shown under 'Groups' and set the page as active, non-searchable, not shown in menu, and not to use HTTPS.

When I visit the page, I see the login w/captcha but am unable to login. I have created and tried several users to no avail (get "Login failed" message)

Any ideas on what to check?

Also, for you CMSMS veterans, what is the ideal way of installing modules? Through the Module Manager, or via uploading the folder via FTP.

Thanks for any help!

p.s. - also installed CGSimpleSmarty, Captcha, and CGExtensions.
- verified users are in database

Re: FEU 1.28 - Front end users cannot login

Posted: Fri Jan 29, 2016 5:08 pm
by Dr.CSS
Are you using the default 'username' (which is the email address of user) to log in or ?...

Re: FEU 1.28 - Front end users cannot login

Posted: Fri Jan 29, 2016 6:22 pm
by npeg
Yes, using the default user name which is the email address. I've turned debug on and am looking at the sql queries which appear to be failing here:

Code: Select all

SELECT u.id FROM cms_module_feusers_users u WHERE u.username = 'myaddress@mydomain.com' AND COALESCE(u.disabled,0) = 0 AND u.password = '15b7ff3a4c333bfa4300f044ab43311349cbef10' LIMIT  1
I have limited knowledge of how the encryption works w/the password/salt fields. I'm assuming that the u.password value given in this SQL query is an encrypted value and I will not see it in my database row?

Re: FEU 1.28 - Front end users cannot login

Posted: Thu Feb 04, 2016 3:55 pm
by npeg
Just and FYI if anyone else runs into this.

Seems that the issue was somehow related to the initial user I created (and deleted) and the password set up for that initial user.

I created a new user (with a different password and email/user id) and it seems to work fine. If I try to recreate that initial user, it's a no go.

Don't know if it's related to salts/encrypted passwords in the database or what (don't pretend to understand how that stuff works).

Re: FEU 1.28 - Front end users cannot login

Posted: Thu Feb 04, 2016 4:32 pm
by Jo Morg
npeg wrote:Don't know if it's related to salts/encrypted passwords in the database or what (don't pretend to understand how that stuff works).
It probably is.
FEU generates a random "salt" word on each new install. You can move or clone the site and the salt will be the same, so the user/password can be kept. Migrating users between different installs of FEU is only possible if you set the salt word to be the same on both installations before you populate the users db, i.e. before you create any user, or try to import any user, otherwise you will run into problems.