]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/default_badges/badges.py
start awarding users who validate their emails with a badge, include email validation...
[osqa.git] / forum_modules / default_badges / badges.py
index 893d32a322457732e8acbc299d930383ef9762a1..f9da788d6c5ad434a22f7d7475b90f4ac9e2d014 100644 (file)
@@ -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