Browse Source

fix(api): put plain token into activation response

Peter Thomassen 5 years ago
parent
commit
1fb7ef6462
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/desecapi/views.py

+ 2 - 2
api/desecapi/views.py

@@ -616,9 +616,9 @@ class AuthenticatedActivateUserActionView(AuthenticatedActionView):
             return redirect(f'/app/dynsetup/{domain.name}/#{token.plain}')
         else:
             return Response({
-                'detail': 'Success! Here is the password ("auth_token") to configure your router (or any other dynDNS '
+                'detail': 'Success! Here is the password ("token") to configure your router (or any other dynDNS '
                           'client). This password is different from your account password for security reasons.',
-                **serializers.TokenSerializer(token).data,
+                **serializers.TokenSerializer(token, include_plain=True).data,
             })
 
     def _finalize_with_domain(self):