X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/e2f06c69a043ca0b3bd64da0bddcc4443fd14f9d..fa657e16956d77027de1594980e27ffef3ff82c1:/forum_modules/default_badges/badges.py diff --git a/forum_modules/default_badges/badges.py b/forum_modules/default_badges/badges.py index 893d32a..f9da788 100644 --- a/forum_modules/default_badges/badges.py +++ b/forum_modules/default_badges/badges.py @@ -320,3 +320,11 @@ class Taxonomist(AbstractBadge): def award_to(self, action): return None +class ValidatedEmail(AbstractBadge): + type = Badge.BRONZE + listen_to = (EmailValidationAction,) + name = _("Validated Email") + description = _("User who has validated email associated to the account") + + def award_to(self, action): + return action.user \ No newline at end of file