Private
Public Access
1
0

fix registration

This commit is contained in:
Sander Roosendaal
2021-12-14 18:32:37 +01:00
parent a18d05bec7
commit ffcd144af6

View File

@@ -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')