Prabha-AIMLOPS commited on
Commit
aeac0d3
·
1 Parent(s): c96424b

added regenerate otp endpoint, updated verify to validate either sms/email and made company id, email str code, mobile str code, status as optional attributes

Browse files
Files changed (1) hide show
  1. app/services/merchant_services.py +1 -2
app/services/merchant_services.py CHANGED
@@ -44,8 +44,7 @@ async def validate_merchant(merchant: MerchantRegister) -> dict:
44
  return {"status": "error", "errors": errors}
45
  else:
46
  #merchant_id = generate_tenant_id(merchant.merchantname, merchant.country, merchant.city, merchant.area) # Send verification emails and SMS if no errors
47
- await send_email_verification(merchant.email,merchant.mobile)
48
- await send_sms_verification(merchant.mobile)
49
  #merchant.merchantId=merchant_id
50
 
51
  # If all validations pass
 
44
  return {"status": "error", "errors": errors}
45
  else:
46
  #merchant_id = generate_tenant_id(merchant.merchantname, merchant.country, merchant.city, merchant.area) # Send verification emails and SMS if no errors
47
+ await send_sms_email_verification(merchant.email,merchant.mobile)
 
48
  #merchant.merchantId=merchant_id
49
 
50
  # If all validations pass