Passwordless - Send SMS
User (registered with email) is logged in and tries to add a phone number that has been used for another account
Request
| Method: | POST |
| Route: | api/auth/passwordless/sms |
| Example: | api/auth/passwordless/sms |
| Input | Value |
|---|---|
| phone | +1.947.648.4045 |
| section | email/random |
| callback | https://www.giuliani.com/minima-dicta-omnis-sint-numquam-eos-modi |
| test | true |
Request Headers
| host: | localhost:49527 |
| user-agent: | Symfony |
| accept: | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
| accept-language: | en-us,en;q=0.5 |
| accept-charset: | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| authorization: | Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUwLCJuYmYiOjE2NTI3NzU5NTAsImp0aSI6InVjb1lrQ0NOREkzZlFLM20iLCJzdWIiOiIxMiIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.uVP4cDBSRW4v0qFShgxv2x0G3ZnXyH9ofssleX8WOxY |
| content-type: | application/x-www-form-urlencoded |
Response
403
JSON
Response Headers
| cache-control: | no-cache, private |
| date: | Tue, 17 May 2022 08:25:50 GMT |
| content-type: | application/json |
| x-ratelimit-limit: | 60 |
| x-ratelimit-remaining: | 59 |
{
"data": null,
"errors": {
"message": "Phone number already taken."
}
}
Time: 0.26
insert into `users` (`updated_at`, `created_at`) values (?, ?)
Bindings
| 0: | 2022-05-17 08:25:50 |
| 1: | 2022-05-17 08:25:50 |
Time: 0.3
insert into `login_tokens` (`user_id`, `token`, `medium_type`, `medium_handle`, `expires_at`, `section`, `consumed_at`, `callback_url`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings
| 0: | 12 |
| 1: | jl6fp8NYY0 |
| 2: | |
| 3: | [email protected] |
| 4: | 2022-05-17 08:40:50 |
| 5: | WE2BzvQGB4KF6RZK |
| 6: | |
| 7: | http://www.lakin.com/ |
| 8: | 2022-05-17 08:25:50 |
| 9: | 2022-05-17 08:25:50 |
Time: 0.41
select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
| 0: | 12 |
Time: 0.31
select * from `users` where (`phone_verified_at` is null or `email_verified_at` is null) and `id` = ? limit 1
Bindings
| 0: | 12 |
Time: 0.28
update `users` set `email_verified_at` = ?, `email` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
| 0: | 2022-05-17 08:25:50 |
| 1: | [email protected] |
| 2: | 2022-05-17 08:25:50 |
| 3: | 12 |
Time: 0.23
update `login_tokens` set `consumed_at` = ?, `login_tokens`.`updated_at` = ? where `id` = ?
Bindings
| 0: | 2022-05-17 08:25:50 |
| 1: | 2022-05-17 08:25:50 |
| 2: | 20 |
Time: 0.21
insert into `users` (`updated_at`, `created_at`) values (?, ?)
Bindings
| 0: | 2022-05-17 08:25:50 |
| 1: | 2022-05-17 08:25:50 |
Time: 0.25
insert into `login_tokens` (`user_id`, `token`, `medium_type`, `medium_handle`, `expires_at`, `section`, `consumed_at`, `callback_url`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings
| 0: | 13 |
| 1: | ALFuuDR3sP |
| 2: | |
| 3: | [email protected] |
| 4: | 2022-05-17 08:40:50 |
| 5: | 0tW2gN21Va3Zv70H |
| 6: | |
| 7: | http://kuhlman.com/ |
| 8: | 2022-05-17 08:25:50 |
| 9: | 2022-05-17 08:25:50 |
Time: 0.3
select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
| 0: | 13 |
Time: 0.29
select * from `users` where (`phone_verified_at` is null or `email_verified_at` is null) and `id` = ? limit 1
Bindings
| 0: | 13 |
Time: 0.26
update `users` set `email_verified_at` = ?, `email` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
| 0: | 2022-05-17 08:25:50 |
| 1: | [email protected] |
| 2: | 2022-05-17 08:25:50 |
| 3: | 13 |
Time: 0.26
update `login_tokens` set `consumed_at` = ?, `login_tokens`.`updated_at` = ? where `id` = ?
Bindings
| 0: | 2022-05-17 08:25:50 |
| 1: | 2022-05-17 08:25:50 |
| 2: | 21 |
Time: 0.23
insert into `login_tokens` (`user_id`, `token`, `medium_type`, `medium_handle`, `expires_at`, `section`, `consumed_at`, `callback_url`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings
| 0: | 13 |
| 1: | zPOl7XwghX |
| 2: | phone |
| 3: | +1.947.648.4045 |
| 4: | 2022-05-17 08:40:50 |
| 5: | dzLSz5LOOYzpefWg |
| 6: | |
| 7: | http://sanford.com/pariatur-nihil-quibusdam-velit |
| 8: | 2022-05-17 08:25:50 |
| 9: | 2022-05-17 08:25:50 |
Time: 0.47
select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
| 0: | 13 |
Time: 0.39
update `login_tokens` set `consumed_at` = ?, `login_tokens`.`updated_at` = ? where `id` = ?
Bindings
| 0: | 2022-05-17 08:25:50 |
| 1: | 2022-05-17 08:25:50 |
| 2: | 22 |
Time: 0.37
update `users` set `phone` = ?, `phone_verified_at` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
| 0: | +1.947.648.4045 |
| 1: | 2022-05-17 08:25:50 |
| 2: | 2022-05-17 08:25:50 |
| 3: | 13 |
Time: 0.48
select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `phone_verified_at` is not null and `phone` = ? limit 1
Bindings
| 0: | +1.947.648.4045 |
Time: 0.49
select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
| 0: | 12 |
Time: 0.37
select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `phone_verified_at` is not null and `phone` = ? limit 1
Bindings
| 0: | +1.947.648.4045 |
Request
| Method: | POST |
| Route: | api/auth/passwordless/sms |
| Example: | api/auth/passwordless/sms |
| Input | Value |
|---|---|
| phone | +1.947.648.4045 |
| section | email/random |
| callback | https://www.giuliani.com/minima-dicta-omnis-sint-numquam-eos-modi |
| test | true |
Request Headers
| host: | localhost:49527 |
| user-agent: | Symfony |
| accept: | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
| accept-language: | en-us,en;q=0.5 |
| accept-charset: | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| authorization: | Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUwLCJuYmYiOjE2NTI3NzU5NTAsImp0aSI6InVjb1lrQ0NOREkzZlFLM20iLCJzdWIiOiIxMiIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.uVP4cDBSRW4v0qFShgxv2x0G3ZnXyH9ofssleX8WOxY |
| content-type: | application/x-www-form-urlencoded |