Login va Register to'girlandi

This commit is contained in:
2025-11-21 16:33:11 +05:00
parent 256e80cc23
commit 3da10c2a7f
9 changed files with 94 additions and 27 deletions

View File

@@ -54,7 +54,7 @@ class RegisterView(BaseViewSetMixin, GenericViewSet, UserService):
data = ser.data
phone = data.get("phone")
# Create pending user
self.create_user(phone, data.get("first_name"), data.get("last_name"), data.get("password"))
self.create_user(phone)
self.send_confirmation(phone) # Send confirmation code for sms eskiz.uz
return Response(
{"detail": _("Sms %(phone)s raqamiga yuborildi") % {"phone": phone}},