diff --git a/rowers/views.py b/rowers/views.py index f2ba6f6b..69efcd63 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -11231,11 +11231,16 @@ def rower_edit_view(request,rowerid=0,message=""): getemailnotifications = cd['getemailnotifications'] defaulttimezone=cd['defaulttimezone'] u = r.user + if u.email != email and len(email): + resetbounce = True + else: + resetbounce = False if len(first_name): u.first_name = first_name u.last_name = last_name if len(email): ## and check_email_freeforuse(u,email): u.email = email + resetbounce = True u.save() @@ -11246,6 +11251,9 @@ def rower_edit_view(request,rowerid=0,message=""): r.showfavoritechartnotes = showfavoritechartnotes r.sex = sex r.birthdate = birthdate + if resetbounce and r.emailbounced: + print "aap" + r.emailbounced = False r.save() form = RowerForm(instance=r) powerform = RowerPowerForm(instance=r) diff --git a/templates/basebase.html b/templates/basebase.html index 6aaaac8a..f88878fe 100644 --- a/templates/basebase.html +++ b/templates/basebase.html @@ -247,6 +247,11 @@ {{ user.rower.protrialexpires|date_dif|ddays }} days left in Pro trial

{% endif %} + {% if user.rower.emailbounced %} +

+ Your email bounced. Please update your email address in the user settings +

+ {% endif %} {% if messages %} {% for message in messages %} {% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}