Closed (fixed)
Project:
User Expire
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2016 at 00:41 UTC
Updated:
14 Jan 2025 at 20:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ervan.salin commentedIt is possible to set a checkbox in the "admin/config/people/user-expire" form and set a Drupal variable to determine if a Email have to be sent to inactive users.
See this patch if it is good for your use case.
Comment #3
lomasr commentedI applied the patch in #2 . give me error. Please check the screen. I think patch needs a reroll.
Comment #4
ervan.salin commentedI reroll and tested the patch and it works.
Comment #5
lomasr commentedComment #7
gonzaguer commentedPatch working fine for me.
Regenerated, if it can help.
Comment #8
astoker88 commentedCan confirm patch in #7 is working well. Would be good to extend this to allow customization of the email template as well.
Comment #9
gregglesThanks for the work writing and testing this.
There was a test failure the last time this was tested, so it needs work to make sure that the test is fixed or the code is fixed (or both).
The failure was "Expected text found in subject of email message: "Account expired"."
Comment #12
cafuego commentedI'm hijacking this issue for the 8.x-1.x version, if it is accepted, we can do a re-backport :-)
The pull request adds UI elements to the config form to enable/disable the notification email and allows admins to customise the notification email. I've replaced the hardcoded limited set of tokens with that standard set of [site:] and [user:] mail tokens.
Comment #13
cafuego commentedUploading a 7.x patch too, so I can use it in composer.
Comment #14
gregglesThis has a conflict now so needs a reroll. Marking needs work for that.
Thanks cafuego and others for the work on this so far.
Comment #15
cafuego commentedHateful gitlab won't let me push to the feature branch for reasons I cannot fathom.
Comment #16
cafuego commentedAll the tests are green, so I guess now the only question is "does it still do what it is supposed to do" ;-)
Comment #17
joegraduateUploading latest MR diff as static patch file usable for composer.
Comment #18
joegraduateWe've tested the MR/patch with good results and are hoping this change will be committed soon as we'd like to use this module on several sites.
Comment #19
joegraduateMost of the testing I've done with this patch was with the functionality for disabling email notifications. Taking a closer look at the functionality for customizing the notification email subject and message I see a potential config schema improvement that we may want to address before merging this.
I think we should replace the new
mail.subjectandmail.bodyconfig settings with a single setting of themailconfig schema type consistent with how the core user module mail configuration settings work.I also wonder if we need to include a database update function to apply the default mail config setting(s) to existing sites.
Comment #20
joegraduateComment #21
joegraduateComment #24
joegraduateCreated a new MR targeting 2.x branch that includes rebased changes from original 8.x-1.x MR + the config schema changes and DB update described in #19.
Comment #27
trackleft2I think the machine names for the settings should be more specific so they don’t exclude additional email/notification options, we can address the confusing labels in the config interface in follow-up issue #3463221: Review and improve form field labels and description
Comment #28
joegraduateComment #29
trackleft2Looks good to me!
Comment #30
joegraduateMade some more improvements to the new settings in the settings form and the overall implementation of when the warnings are sent. This ready for final review now IMHO.
Comment #31
joegraduateComment #34
joegraduateCreated new branch from existing MR (duplicate MR) to trigger tugboat.
Comment #35
joegraduateComment #36
joegraduateComment #38
joegraduateMerged.