Passwordless - Send SMS

When the `test` parameter is true, the external (SMS) service is bypassed

Request

Method: POST
Route: api/auth/passwordless/sms
Example: api/auth/passwordless/sms
Input Value
phone 334.571.0259
section sms/random
callback http://www.palmieri.it/repudiandae-iure-quaerat-voluptatem
test true
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
content-length: 135
content-type: application/json

Response

201 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": {
        "message": "Magic link successfully sent"
    }
}

Time: 0.33

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.27

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: 8
1: vBa3amsTU2
2: email
3: [email protected]
4: 2022-05-17 08:40:50
5: 3DHzMzSDI72T3ExZ
6:
7: http://bradtke.com/optio-asperiores-mollitia-nihil-ratione
8: 2022-05-17 08:25:50
9: 2022-05-17 08:25:50

Time: 0.36

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 8

Time: 0.44

select * from `users` where (`phone_verified_at` is null or `email_verified_at` is null) and `id` = ? limit 1
Bindings
0: 8

Time: 0.49

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: 8

Time: 0.42

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: 13

Time: 0.38

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: 8
1: DJ4ucMMKx4
2: phone
3: 334.571.0259
4: 2022-05-17 08:40:50
5: nNj1bsS8Eqgg4evO
6:
7: http://www.hand.biz/dolor-quia-impedit-non-labore
8: 2022-05-17 08:25:50
9: 2022-05-17 08:25:50

Time: 0.46

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 8

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: 14

Time: 0.25

update `users` set `phone` = ?, `phone_verified_at` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
0: 334.571.0259
1: 2022-05-17 08:25:50
2: 2022-05-17 08:25:50
3: 8

Time: 0.33

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: 334.571.0259

Time: 0.3

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: 334.571.0259

Time: 0.3

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: 334.571.0259

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: 8
1: Hb8wTOcQcT
2: phone
3: 334.571.0259
4: 2022-05-17 08:40:50
5: sms/random
6:
7: http://www.palmieri.it/repudiandae-iure-quaerat-voluptatem
8: 2022-05-17 08:25:50
9: 2022-05-17 08:25:50

Time: 0.32

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 8

Request

Method: POST
Route: api/auth/passwordless/sms
Example: api/auth/passwordless/sms
Input Value
phone 334.571.0259
section sms/random
callback http://www.palmieri.it/repudiandae-iure-quaerat-voluptatem
test true
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
content-length: 135
content-type: application/json