When the module is installed, it generated one user for each role, but this user is not able to login.

Comments

dfranca created an issue. See original summary.

dfranca’s picture

StatusFileSize
new332 bytes

This is happening because the user_save function only generate user_hash_password if the edit parameter is passed.
If this is not done this way, it ends up saving the raw password into the database and the login won't work.

dfranca’s picture

Status: Active » Needs review
badjava’s picture

I think technically it should be NULL being passed, not an empty string. Otherwise this patch looks good to me.

dfranca’s picture

dfranca’s picture

StatusFileSize
new332 bytes

Code updated. Thanks badjava.

badjava’s picture

Assigned: dfranca » Unassigned
Status: Needs review » Reviewed & tested by the community

Reproduced the issue and the patch fixes it.

  • natanmoraes committed 81650e6 on 7.x-1.x authored by dfranca
    Issue #2795981 by dfranca: Generated users can't login to the site
    
natanmoraes’s picture

Status: Reviewed & tested by the community » Fixed

Patch committed. Thanks guys.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.