Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I don't want to delete unverified users, I just want to block them. It would be nice if this was an option in logintoboggan.
I will work on a patch.
Comments
Comment #2
organicwire CreditAttribution: organicwire as a volunteer and commentedHere's a patch for the desired functionality. Note that for security reasons, the default changed from delete users to block users. That's a more conservative setting that prevents losing data (such as when users already created content).
In admin/config/system/logintoboggan a few things changed:
- new setting Disable operation
- renamed Purge unvalidated users after into Disable unvalidated users after
- moved all related items into their own field group
Comment #3
pjcdawkins CreditAttribution: pjcdawkins as a volunteer commentedThanks for the patch! I've reviewed by eye.
The patch introduces the words "disable" and "discard" (as well as the Drupal core terminology, "block") which I think add unnecessary extra meaning. I think the word "purge" could still be used to mean either blocking or deleting: I'd recommend using that. It would then be the same word in the UI and in the code (it would match
logintoboggan_purge_operation
).Comment #4
gbyte CreditAttribution: gbyte as a volunteer and commented@pjcdawkins The patch addresses a critical issue of this module (which you yourself reported) and is working perfectly for me. The proposed terminology makes it clear what happens with unauthenticated users and seems sensible. If you disagree with the terminology, please do not block the patch by tagging it 'needs work'. Instead, please upload a patch yourself (and an interdiff if possible) so we can quickly go on with getting it commited.
To me #2 is RTBC.
Comment #5
organicwire CreditAttribution: organicwire as a volunteer and commented@pjcdawkins says:
Thanks for your review. I agree that somehow an extra meaning is introduced. However, I think that it's needed. The term "purge" very much sounds like deletion. So I propose to use the term "Disable" that distinctively means blocking users and not deleting them.
If there's any native english speaker around with better suggestions, I'm happy to see your patches!
Comment #6
organicwire CreditAttribution: organicwire as a volunteer and commentedHi @pjcdawkins, do you have any suggestions? I'll be happy to see another patch.
Comment #7
organicwire CreditAttribution: organicwire as a volunteer and commentedAdded a fix: When blocking users you want unpublish their content. This is included in the new patch. Before their content was left untouched.
Comment #8
organicwire CreditAttribution: organicwire as a volunteer and commentedInclude new variable in contrib/logintoboggan_variable/
Comment #9
organicwire CreditAttribution: organicwire as a volunteer and commentedPatch #8 breaks cron run when no unvalidated users exist. The new patch fixes this. Applies on 7.x-1.5