Opened 15 years ago
Closed 5 years ago
#6318 closed defect (worksforme)
[patch] Users can't get verification email
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | needinfo user register verifiy |
Cc: | Trac Release: | 0.11 |
Description
I've installed the plugins and enable the all function in this plugin.Once I create new account , users can't get the verification mails. Have you met this situation?
Thanks,
Attachments (1)
Change History (19)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
What is confusing is that AccountChangeListener has to be enabled in order to send verification mails. The log output won’t tell much and it should exist a warning or even an error message that it isn’t possible to send verification mails when certain dependencies aren’t met.
comment:3 follow-up: 5 Changed 14 years ago by
I have attached a patch that fixes this issue (or at least it fixes how I experienced it). What happens is that the notification code assumes that the username is an email address, even if an email explicitly has been set (in fact nothing is sent if an email isn't explicitly set).
This does mean changes to the API, but totally sane ones IMO.
comment:4 Changed 14 years ago by
I have created http://bitbucket.org/larsivi/trac-accountmanager-plugin/ as an alternative place to get this plugin and any patches I've applied (so far only this one).
comment:5 Changed 14 years ago by
Keywords: | user register verifiy added |
---|---|
Owner: | changed from Matt Good to Steffen Hoffmann |
Summary: | Can't get verification mail → [patch] Users can't get verification email |
Replying to larsivi:
I have attached a patch that fixes this issue (or at least it fixes how I experienced it). What happens is that the notification code assumes that the username is an email address, even if an email explicitly has been set (in fact nothing is sent if an email isn't explicitly set).
Thanks for sharing your experience on the account verification feature.
I don't know, if your assertion on the AccountManagerPlugin code is true, since it worked flawlessly for me by now. However there is not only TracNotification but AnnouncerPlugin to be taken into account, and I've been always using the latter. I'll have to fix the high priority issues first, but I'll certainly come back at you soon.
This does mean changes to the API, but totally sane ones IMO.
Are there any relevant unittests in place. If so, did you already check them with your changes applied? If not, would you dare to create/propose some. Patch welcome, even building blocks would be certainly appreciated.
comment:6 Changed 13 years ago by
I'm aware of this pending issue. But I'll have to postpone this to finally get the new release out of the door. But I'll try to resolve this within the next release cycle.
comment:7 follow-up: 9 Changed 13 years ago by
Hi, just reporting that I'm getting this exact problem. Adding a new user does not seem to send a verification e-mail. Getting that new user to change or update their e-mail address does send a verification e-mail. I'm also using TracNotification. I tried AnnouncePlugin but could not get that to work at all. I have now idea what the AnnouncePlugin was doing, but it would not talk over SendMail given the documentation says it can.
An interesting thing I have found is that as TRAC_ADMIN the new user appears in the user list with full name and e-mail address details. However, if you login as that new user the full name and e-mail details under the "General" preferences tab are blank. Go figure!
comment:8 Changed 13 years ago by
P.S. I'm using Trac 0.12, TracAccountManager 0.4dev and tried using TracAnnouncer-0.12.1dev
comment:9 follow-up: 14 Changed 13 years ago by
Replying to sdhengsoft:
Hi, just reporting that I'm getting this exact problem. Adding a new user does not seem to send a verification e-mail. Getting that new user to change or update their e-mail address does send a verification e-mail.
Thanks for the confirmation. Yes, this is still unresolved, sorry.
An interesting thing I have found is that as TRAC_ADMIN the new user appears in the user list with full name and e-mail address details. However, if you login as that new user the full name and e-mail details under the "General" preferences tab are blank. Go figure!
This is also a known issue, so you may want to follow #9252 for more details and progress.
comment:11 Changed 13 years ago by
Hey I got TracAnnounce working finally. Still no joy with verification email with newly registered users. The only way seem to get the user to update their email address manually. Then a verification e-mail is sent.
comment:12 Changed 12 years ago by
Keywords: | needinfo added |
---|
Please retry with recent trunk
code for both plugins, because it has been fixed in TracAnnouncer aka AnnouncerPlugin according to my recent tests. Feedback welcome.
comment:13 Changed 12 years ago by
Priority: | normal → low |
---|
Replying to rue@ms5.hinet.net:
I've installed the plugins and enable the all function in this plugin.Once I create new account , users can't get the verification mails. Have you met this situation?
No, I can't reproduce this issue with acct_mgr-0.4 and a recent trunk
revision of TracAnnouncer. TracNotification should work as well.
Please re-try to allow for progress, or I'll assume this issue has been resolved by some of the changes before aforementioned plugin release.
comment:14 follow-up: 15 Changed 10 years ago by
Replying to hasienda:
Replying to sdhengsoft:
Hi, just reporting that I'm getting this exact problem. Adding a new user does not seem to send a verification e-mail. Getting that new user to change or update their e-mail address does send a verification e-mail.
Thanks for the confirmation. Yes, this is still unresolved, sorry.
I just ran into same issue (Trac 1.01, account manager 0.4.4) today (Oct. 23, 2014). It has not been solved? Or I miss some setting?
comment:15 follow-up: 16 Changed 10 years ago by
Replying to tigerpeng2001@…:
I just ran into same issue (Trac 1.01, account manager 0.4.4) today (Oct. 23, 2014). It has not been solved? Or I miss some setting?
Clearly comment 12 has been written after a successful test.
You seem to have issues, but your setup is not clear at all. Do you use TracNotification from Trac core? What AcctMgr components are enabled and what account mananger and notification system settings are applied?
comment:16 Changed 10 years ago by
Replying to hasienda:
Replying to tigerpeng2001@…:
I just ran into same issue (Trac 1.01, account manager 0.4.4) today (Oct. 23, 2014). It has not been solved? Or I miss some setting?
Clearly comment 12 has been written after a successful test.
You seem to have issues, but your setup is not clear at all. Do you use TracNotification from Trac core? What AcctMgr components are enabled and what account mananger and notification system settings are applied?
- TracNotification is enabled - notifications are CC to account_changes_notify_addresses when create new user (not value for To: field). Password reset does send email to users.
- All AcctMgr components, except acct_mgr.register.*, acct_mgr.db.sessionstore, are enabled;
- account manager set as below
[account-manager] account_changes_notify_addresses = Ops@mycom.com authentication_url = db_htdigest_realm = force_passwd_change = true hash_method = HtDigestHashMethod htdigest_file = htdigest_realm = htpasswd_file = /var/www/svn/repos/conf/svn-auth-conf htpasswd_hash_type = crypt notify_actions = new,change,delete password_file = /var/www/svn/repos/conf/svn-auth-conf password_store = HtPasswdStore persistent_sessions = true refresh_passwd = False reset_password = true verify_email = true
- There may be some clue: when create new user: the 'account_change_notify_addresses' is repeated (show in maillog).
Oct 24 15:10:38 trac2 sendmail[21813]: s9OFAbad021811: to=<Ops@mycom.com>,<Hcp_Ops@mycom.com>.....
comment:17 Changed 8 years ago by
Owner: | Steffen Hoffmann deleted |
---|
comment:18 Changed 5 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Make sure you have the following in your trac.ini: