From ffcd144af6947dee507b9e6deb0ff15b62ee45d2 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 14 Dec 2021 18:32:37 +0100 Subject: [PATCH] fix registration --- rowers/views/paymentviews.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rowers/views/paymentviews.py b/rowers/views/paymentviews.py index 88848e68..f133ce0b 100644 --- a/rowers/views/paymentviews.py +++ b/rowers/views/paymentviews.py @@ -855,14 +855,14 @@ def rower_register_view(request): d = { 'user': theuser, 'domain': current_site.domain, - 'uid': urlsafe_base64_encode(force_bytes(theuser.id)).decode(), + 'uid': urlsafe_base64_encode(force_bytes(theuser.id)), 'token': account_activation_token.make_token(theuser), } to_email = form.cleaned_data.get('email') message = render_to_string('acc_activate_email.html', { 'user': theuser, 'domain': current_site.domain, - 'uid': urlsafe_base64_encode(force_bytes(theuser.id)).decode(), + 'uid': urlsafe_base64_encode(force_bytes(theuser.id)), 'token': account_activation_token.make_token(theuser), }) to_email = form.cleaned_data.get('email')