CF Login form not working

alexei 09 Jun, 2011
Hello,

My login form requires both email and password fields to log in a user.

My email text area has the name "email" associated with it. It doesn't recognize the email. It says username and password do not match or you do not have an account.

If I set the email text field's name to "name" and log in using my name, then it works just fine.

Is there something I'm missing to have it look up the email.

I'm using Joomla 1.5 with community builder. CF version 4.

Thanks!
Alexei
GreyHead 09 Jun, 2011
Hi Alexei,

A Joomla! login needs to match the username and the password to the entries in the jos_users table. If you have used emails for usernames then you can use the email to login. If not then not.

You could add code that looked up a user's 'username' from their email and do that substitution behind the scenes if you really need to use emails.

Bob

Bob
alexei 09 Jun, 2011
Thanks Bob,

Unfortunately I'm not resolving any of my issues here.

to sum up:

I have a signin form and a registration form.

The reg form asks for
name
email
confirm email
password
confirm password

signin form asks for:
email
password

to match with joomla, I've kept the username field intact but the field text says "email"
-I still haven't found a way to confirm both email fields are the same. I found the js that max posted and put it in a custom ssv in the "on submit" part of the form. nothing.

-Also my registration form says passwords do not match even though they do.

I followed Max's v4 tutorial for creating a reg form. I had the password confirmation working for a moment. Maybe me tinkering with getting the emails to match broke something.

I emailed you the login info yesterday to have a peek. Not sure if you've had a chance.

Any help would be wonderful!
Thanks,
Alexei
GreyHead 10 Jun, 2011
Hi Alexei,

I took a look at the site and there are a few things to fix.
[list=1]
  • The site is loading JQuery (for a slideshow somewhere) without putting it into noConflict mode. (see below)

  • The template is not loading MooTools or any of the script files that ChronopForms needs (though it is loading the CSS) It looks like this is a bug in the modification of ja_purity that needs to be fixed. The form without the template loads the files correctly and the validation works.

  • You have two inputs with the name 'email' so the vaidation can't tell them apart. The second one should be email_required.

  • The first email field has no id - I usually set the names and ids to be the same.
  • [/list:o]
    Bob

    Your template (or some other component) is loading the jQuery JavaScript library. Out of the box jQuery isn't compatible with the MooTools library used by Joomla! and ChronoForms. You can use jQuery with MooTools in no-conflict mode. There are various ways of doing this. The simplest is to add a line of script in the ChronoForms Form JavaScript box:
    jQuery.noConflict();
    This will free the $ operator which is used by MooTools, so you may need to update your own javascripts to use the longer jQuery operator.

    There is also a neat Joomla! system plugin named SC jQuery that allows you to control on which pages jQuery is loaded, and will always load it in no-conflict mode.
    alexei 10 Jun, 2011
    Bob,
    Thanks for your help! I see that if I remove the links to the jQuery in the index.php, my forms work perfect. The problem is I need that code, at least for the homepage. I tried your suggestions and installed SC jQuery but that didn't work. I also used the snippet you sent me in a js loader in my forms, both in the onLoad and onSubmit areas to no avail....

    Cheers!
    Alexei
    GreyHead 10 Jun, 2011
    Hi Alexei,

    I'll try to take a look tomorrow morning my time. It may not be possible without FTP access to edit files but I'll see what I can do. I'm no expert in this so can't give you any 'better' instructions than I have.

    Bob
    GreyHead 11 Jun, 2011
    Hi Alexei,

    It looks as though you have this working OK now.

    Bob
    This topic is locked and no more replies can be posted.