fix: deprecate passwords, use phone auth source of truth

This commit is contained in:
2026-03-14 00:47:31 +03:00
parent c391a9b8e5
commit 0b76356169
4 changed files with 60 additions and 2 deletions
+14
View File
@@ -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,
)