Hi,

I am using Email Registration 7.x-1.2 and Drupal 7.31.

Scenario 1
------------
1. User creates a new account using Create New Account.
2. Admin approves the new user account. An email is sent for verification.
3. User verifies himself using the link received in email.
4. Verification email works and user is able to set password.
5. User logout from account.
6. User tries to login using Login page. User enters email address as username and password set in step no (4).
7. User gets unrecognized username or password error message.

Scenario 2
------------
1. Admin creates a new account for user from People menu.
2. User tries to login from Login page. User enters email address and password provided by Admin set in step no (1).
3. User is able to login successfully.

I am trying to resolve this issue from past 5 days but I am unable to do so.

I request you to please look in this issue and resolve this.

Thank you very much.

Comments

shahidbscs’s picture

Same issue here. Did you resolve this?

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

Did you try this on a brand new Drupal 7 site or are there other modules/configurations?

There are automated tests that run on this module to ensure it's working properly, so I have a high degree of confidence that it generally works.

My guess is there is something else about your setups that makes it not work. Can you try again on a brand new drupal 7.x site and see whether the module works there or not?

pmoz’s picture

Had this working for a long time but recently, it stopped for me too.

Had to turn off the module and uninstall.

greggles’s picture

@pmoz - can you expand on which parts of it stopped working for you?

pmoz’s picture

All users began to receive unrecognized username or password errors if they used their email address.

They could log on using their username.

The site had Email Registration and Email Registration Clean Name (which I can't find any trace of online now) enabled.

I uninstalled both modules and reinstalled Email Registration and it appears to be functioning correctly.

As an aside, was there a module called "Email Registration Clean Name" or was this something someone had created prior to my work with the site?

greggles’s picture

I've never heard of "Email Registration Clean Name" before. I guess it's something specific to your site :/

pmoz’s picture

There is a folder inside of the module that is called "nbproject" if that tells us anything.

I don't think the folks before me would have created something on their own.

Oh well, I'm glad it's working again.

Thanks.

misterpo’s picture

Hi,

Stopped working for me too.

Module version 7.x-1.3 and Drupal 7.43.

Uninstalling and re-installing didn't fix the problem.

greggles’s picture

Hi @misterpo - I tried it out on simplytest.me by going to https://simplytest.me/project/email_registration and creating a site, configuring the module, and then registering a new anonymous user. Can you try it there and see what steps are necessary to reproduce the bug?

cp4w’s picture

Hi all,

Not working for me too. Exactly same scenario as "Scenario 1".

Then I tried to reset password through User profile Admin UI.

When the pwd has been reset like this, and if you try to login using your e-mail address, it's working.

Maybe is the password not well saved. Unfortunately this is hashed in DB, so we can't really check what's saved as password.

If someone finds something interesting. The module is really great, but can't use it like this...

greggles’s picture

Thanks for the additional information cp4w - can you try that scenario on https://simplytest.me/project/email_registration ?

If not, can you try it on a completely fresh install where the only thing you installed was email_registration?

cp4w’s picture

I tried to Reproduce on simplytest, but the e-mail is not sent. We need the activation link we normally receive by email.

If we set the password through the Admin interface, it's going to work

greggles’s picture

OK, got it. When you're reproducing it, is it on a fresh site that has just email_registration or were there other modules/configuration involved?

cp4w’s picture

OK... more info...

I tried it on a fresh install... and it's working indeed.

Actually, the normal Drupal flow is:

- You receive the one-time-link email to provide a password.
- When you click on it, you're redirected to your user profile page. And from there... you're reseting your password.
- As I said (in the second part of my test) (and also check scenario 2 of s.agrawal97), when the password is created from ADMIN UI, it's working.

The situation is different on my website, I use a module (don't remember which one. I'll check cause maybe there's an incompatibility we can solve somewhere) that prints the reset password form on the page displayed when you click on the "one-time-set-password" link (instead of displaying, as OOTB, a button that redirects to back-end user profile). So, my reset-password form us displayed in front-end.

Listen, I'm going to debug a bit and inform you about my conclusion. If there's something interesting to update in your module, I'll tell you.

Cheers

PS: the module I use to print reset password front-end is "Password Reset Landing Page (PRLP)" (and I had to hack it a bit to enable i18n :-) ).
The module overrides the "function prlp_user_pass_reset_submit($form, &$form_state) {" function... so, the problem is maybe not coming from your module ! :-) Keep you informed

cp4w’s picture

Hi greggles,

After some more tests, I confirm the problem is not coming from Email Registration.

Sorry for the bad alert... but thanks to your module I discovered a bug in my application.

I'll use your module after having solved the problem.

Cheers

greggles’s picture

Good to know - thanks so much for your research and followup, cp4w.

cp4w’s picture

I fixed my bug...

Your module is working good, also in conjonction with "Password Reset Landing Page (PRLP)"

Thanks !

Cheers

C.

greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing out since there seems to be nothing to change in email registration.