FEU 1.28 - Front end users cannot login

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
npeg
New Member
New Member
Posts: 6
Joined: Thu Apr 14, 2011 1:33 pm

FEU 1.28 - Front end users cannot login

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: FEU 1.28 - Front end users cannot login

Post by Dr.CSS »

Are you using the default 'username' (which is the email address of user) to log in or ?...
npeg
New Member
New Member
Posts: 6
Joined: Thu Apr 14, 2011 1:33 pm

Re: FEU 1.28 - Front end users cannot login

Post 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?
npeg
New Member
New Member
Posts: 6
Joined: Thu Apr 14, 2011 1:33 pm

Re: FEU 1.28 - Front end users cannot login

Post 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).
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: FEU 1.28 - Front end users cannot login

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Modules/Add-Ons”