Registration Failed

  • peterward
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 4 months ago #1 by peterward
Registration Failed was created by peterward
Joomla 2.5.7 - moodle 2.3.3 - joomdle 09 - Hikashop Business 2.0.0

I have a few related issues around authentication.

1.
When a user creates an account through joomla they receive an error message

- >> Login denied! Your account has either been blocked or you have not activated it
! >> Registration failed: Registration failed

The account appear in joomla, joomdle, hikashop and moodle
No authentication e-mail is delivered to either the user or the admin (I have joomla set to deliver to both)

2.
When a user creates an account through moodle they receive the normal moodle message telling them that an e-mail has been sent to them.

The account appears only in moodle and not in joomla, joomdle or hikashop
No authentication e-mail is delivered from moodle to the user

3.
When the administrator sends a message from within moodle to the newly registered user it is delivered by e-mail to the user. - Which indicates that e-mail is functioning from moodle.

My mail settings in joomla are PHP mail and SMTP Authentication is switched to No
I have another joomla on the same server with no moodle, joomdle, or hikashop which e-mails correctly and I have checked that my problem Joomlas have the same settings for mail.

So I'm guessing I have some sort of conflict between joomla - joomdle - moodle or that I have not set up the authentication method correctly.

Here's what I have:

Moodle authentication has e-mail based self registration switched on.
Moodle authentication has Joomdle switched on with sync users to joomla set as Yes
Moodle courses have self enrolment switched on
Moodle courses have Joomdle enrolment switched on


Any Ideas would be most welcome.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Registration Failed
1. I don't know what may be the cause for that. To know if it is Joomdle-related, disable joomdlehooks plugin, and then create a new account, to see if youget the error or not.

2. You need to select joomdle as auth method in moodle when creating the user so that it is synced to joomla.

Don't know why you are not getting registration emails either.

Please Log in or Create an account to join the conversation.

  • peterward
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago - 13 years 3 months ago #3 by peterward
Replied by peterward on topic Registration Failed
Thanks for your response Antonio.

After further testing I have now been able to separate a few of the issues.

I can confirm that php emailing works on my server as I am able to execute the following script successfully:
<?php
$done = mail('youre-mail@gmail.com', 'Test subject', 'Test body', 'From: Your name ');

if ($done)
echo 'DONE';
else
echo 'NOT DONE';
?>

So to clarify, the problem I'm experiencing now boils down to, when a user creates a new account in joomla, and they select 'register' they receive the message:

- >> Login denied! Your account has either been blocked or you have not activated it
! >> Registration failed: Registration failed

The users account has been registered I can see it in the joomla user list and it's awaiting the user to click through their e-mail to activate it, so why the error message and why no e-mail notification to the user.

I've searched the joomla forums for the answer without success. Hopefully the answer lies with joomdle and this forum
Last edit: 13 years 3 months ago by peterward. Reason: more info available

Please Log in or Create an account to join the conversation.

  • peterward
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago #4 by peterward
Replied by peterward on topic Registration Failed
Antonio,

I disabled joomdle hooks and created a new user. No error messages were received and the new user received an e-mail in their box with the activation token.

What do you suggest?

Please Log in or Create an account to join the conversation.

  • peterward
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 3 months ago #5 by peterward
Replied by peterward on topic Registration Failed
OK I have it.

When 'auto login users at registration' is set to yes in joomdle > configuration

a new user will receive the error message:

- >> Login denied! Your account has either been blocked or you have not activated it
! >> Registration failed: Registration failed

and no authentication e-mail is delivered.

When 'auto login users at registration' is set to No in joomdle > configuration

everything works fine.

Hope that helps others.

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Registration Failed
Great to know that you figured it out.

Auto-login should only be enabled in sites that does not require account activation. If not, you will see the login denied error, as the system tries to log a not yet activated user.

Please Log in or Create an account to join the conversation.