fix: deprecate passwords, use phone auth source of truth
This commit is contained in:
@@ -169,3 +169,17 @@ class SocialLoginPlaceholderView(APIView):
|
||||
{"detail": _("Social login not configured yet. Add OAuth provider config.")},
|
||||
status=status.HTTP_501_NOT_IMPLEMENTED,
|
||||
)
|
||||
|
||||
|
||||
class PasswordTokenObtainDeprecatedView(APIView):
|
||||
permission_classes = [permissions.AllowAny]
|
||||
|
||||
def post(self, request):
|
||||
return Response(
|
||||
{
|
||||
"detail": _(
|
||||
"Password login is deprecated. Use /api/auth/phone/request/ then /api/auth/phone/verify/."
|
||||
)
|
||||
},
|
||||
status=status.HTTP_410_GONE,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user