X-Git-Url: https://git.openstreetmap.org/osqa.git/blobdiff_plain/e2f06c69a043ca0b3bd64da0bddcc4443fd14f9d..ee224eb2acc8f8d6ef4af6c083060a4403f45cd9:/forum_modules/default_badges/badges.py?ds=inline diff --git a/forum_modules/default_badges/badges.py b/forum_modules/default_badges/badges.py index 893d32a..ac02899 100644 --- a/forum_modules/default_badges/badges.py +++ b/forum_modules/default_badges/badges.py @@ -320,3 +320,12 @@ 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") + award_once = True + + def award_to(self, action): + return action.user \ No newline at end of file