#3989 closed defect (fixed)
Email verification reqired and password reset with notification effectively disabled locking users
| Reported by: | Owned by: | Steffen Hoffmann | |
|---|---|---|---|
| Priority: | high | Component: | AccountManagerPlugin |
| Severity: | normal | Keywords: | user lock notification verify email password reset |
| Cc: | sagar.behere@… | Trac Release: | 0.11 |
Description
I effectively locked myself out by changing my email address via the preferences for a project that used the default notification.smtp_enabled value of false. It would probably a good idea to disable email verification in that case because the verification message never comes.
Attachments (1)
Change History (11)
comment:1 Changed 17 years ago by
| Owner: | changed from Matt Good to John Hampton |
|---|---|
| Priority: | normal → high |
| Status: | new → assigned |
| Trac Release: | 0.10 → 0.11 |
Changed 17 years ago by
| Attachment: | acct_mgr-r4679-no-verify-without-smtp.patch added |
|---|
comment:2 follow-up: 5 Changed 17 years ago by
The attached patch disables e-mail verification if [notification] smtp_enabled is not set to True. It applies to trunk, r4679. I have lightly tested it with Trac 0.11.2.
comment:3 Changed 15 years ago by
| Cc: | sagar.behere@… added; anonymous removed |
|---|---|
| Keywords: | user lock notification verify email password reset added |
| Summary: | email verification assumes notification is enabled → Email verification reqired and password reset with notification effectively disabled locking users |
As #7187 suggests there is a similar issue with changing passwords without notification disabled.
This requires an additional fix.
comment:4 Changed 15 years ago by
comment:5 Changed 15 years ago by
| Owner: | changed from John Hampton to Steffen Hoffmann |
|---|---|
| Status: | assigned → new |
Replying to otaku42:
The attached patch disables e-mail verification if
[notification] smtp_enabledis not set toTrue. It applies to trunk, r4679. I have lightly tested it with Trac 0.11.2.
To properly take care of this issue, we'll need to keep checking for (un)availability of AnnouncerPlugin in mind as well.
comment:6 Changed 14 years ago by
(In [10284]) AccountManagerPlugin: Don't start email verification without email setup, refs #3989.
The basic check currently includes TracNotification and TracAnnouncer. Any verification in-process is still expected to be finished in order to lift restricted permissions for this user.
And I remove some debug logging that has been committed unintentionally before.
comment:7 Changed 14 years ago by
| Status: | new → assigned |
|---|
As AcctMgr has now way to check, if the email setup is functional, this is the best that could be done now.
So I recommend to go with this solution at least for the next release, even if it feels a little clumsy. Enhancement by smarter code is always appreciated.
comment:8 Changed 14 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
(In [10393]) AccountManagerPlugin: Releasing version 0.3, pushing development to 0.4.
This new feature release finally propagates a number of solutions into an
official release, after some time of testing with trunk, so explicitely
closes #442, #816, #2966, #3989, #4160, #6821, #7111, #8534, #8549, #8663,
#8813, #8892, #8925, #8936 and #8939.
Should have made this months ago, but felt so many pending issues were too
bad for a new release. But it has been a tremendous ticket burndown since
last year, so it's really worth considering an upgrade now.
See fresh changelog for details.
comment:9 Changed 14 years ago by
(In [10395]) AccountManagerPlugin: Releasing version 0.3, pushing development to 0.4.
This new feature release finally propagates a number of solutions into an
official release, after some time of testing with trunk, so explicitely
closes #442, #816, #2966, #3989, #4160, #6821, #7111, #8534, #8549, #8663,
#8813, #8892, #8925, #8936 and #8939.
Should have made this months ago, but felt so many pending issues were too
bad for a new release. But it has been a tremendous ticket burndown since
last year, so it's really worth considering an upgrade now.
See fresh changelog for details.



Agreed. The quick fix is to set:
in trac.ini and restart your webserver.
I'll work on a better fix soon.