diff --git a/rowers/templates/gdpr_optin.html b/rowers/templates/gdpr_optin.html index 9e084f75..ae3d1a24 100644 --- a/rowers/templates/gdpr_optin.html +++ b/rowers/templates/gdpr_optin.html @@ -11,18 +11,24 @@ you can opt in or delete this user account.

-

GDPR Opt-In

+

Data Consent

To comply with the European Union General Data Protection Regulation, we need to record your consent to use personal data on this website. Please take some time to review our data policies. If you agree and opt in, click the "opt in" button at the bottom to be taken to the site. - If you do not agree, please use the red button to delete your + If you do not agree, please use the button at the end fo the page to delete your account. This will irreversibly delete all your data on rowsandall.com and remove your account.

+ +

+ OPT IN AND CONTINUE +

+ +
{% include "privacypolicy.html" %} @@ -33,26 +39,27 @@ To start or continue using the site, please give your consent by clicking on the green Opt In button below.

-

- Download your data -

+

- Opt in and continue + OPT IN AND CONTINUE

{% csrf_token %} - - + +

+

+ Download your data +

+ {% endblock %} {% block sidebar %} {% include 'menu_profile.html' %} {% endblock %} - diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz new file mode 100644 index 00000000..a0e60e63 Binary files /dev/null and b/rowers/tests/testdata/testdata.tcx.gz differ diff --git a/rowers/views/paymentviews.py b/rowers/views/paymentviews.py index 11a8c22d..268240cb 100644 --- a/rowers/views/paymentviews.py +++ b/rowers/views/paymentviews.py @@ -784,10 +784,11 @@ def useractivate(request, uidb64, token): # pragma: no cover ['roosendaalsander@gmail.com']) - messages.info(request,'Thank you for your email confirmation. Now you can login to your account.') - url = '/login/' - if user.rower.rowerplan == 'freecoach': - url+='?next=/rowers/me/teams' + messages.info(request,'Thank you for your email confirmation. YOu are now signed in to your account.') + login(request, user, backend=settings.AUTHENTICATION_BACKENDS[0]) + url = reverse('workouts_view') + #if user.rower.rowerplan == 'freecoach': + # url+='?next=/rowers/me/teams' return HttpResponseRedirect(url) else: return render(request,