Given an an activation key, look up and activate the user
account corresponding to that key (if possible).
- After successful activation, the signal
- ``registration.signals.user_activated`` will be sent, with the
- newly activated ``User`` as the keyword argument ``user`` and
- the class of this backend as the sender.
activated_user = RegistrationProfile.objects.activate_user(activation_key)
def get_success_url(self, request, user):