adding mobile number check
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 43s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 43s
This commit is contained in:
parent
b7dac2f02d
commit
db015ef756
1 changed files with 14 additions and 0 deletions
14
check_registered.py
Normal file
14
check_registered.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
import requests
|
||||||
|
|
||||||
|
phone = "9876543210"
|
||||||
|
payload = {
|
||||||
|
"username": "artisan_543210",
|
||||||
|
"email": "test@test.com",
|
||||||
|
"phone": phone,
|
||||||
|
"password": "Password123!",
|
||||||
|
"confirm_password": "Password123!"
|
||||||
|
}
|
||||||
|
|
||||||
|
res = requests.post("http://localhost:8000/api/auth/register/", json=payload)
|
||||||
|
print("Register 9876543210:", res.status_code, res.text)
|
||||||
|
|
||||||
Loading…
Reference in a new issue