In description of this module say: "The password will be synchronized when the user is created or he changes his password. I will not "guess" password of user allready registered."

But when i create a new user the module not sync him in the htpasswd file, only sync when update the user.

Only additional config i did:
In the file path i use the "public://somefile"

att
Luiz Carvalho

CommentFileSizeAuthor
#1 create_new_user.patch428 bytesdchronos

Comments

dchronos’s picture

Status: Active » Needs review
StatusFileSize
new428 bytes

When the function _htpasswdsync_updatepasswd() is executed, the user does not exist in the database yet;

Execute the hook_user_insert() with the _htpasswdsync_updatepasswd() is a solution. I don't know if is the better way

stfwi’s picture

Status: Needs review » Fixed

Hi Luiz, thanks for going into this matter. I applied and (quick-) tested the patch (DP7.12). The new commit is http://drupalcode.org/project/htpasswdsync.git/commit/7f1ce5d in dev.

Status: Fixed » Closed (fixed)

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