Passwordless - Send Email

When the `test` parameter is true, the mail service is bypassed

Request

Method: POST
Route: api/auth/passwordless/email
Example: api/auth/passwordless/email
Input Value
email [email protected]
section email/random
callback http://giuliani.it/quam-odit-alias-aut-deleniti
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: 137
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.4

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `email_verified_at` is not null and `email` = ? limit 1
Bindings
0: [email protected]

Time: 0.26

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `email_verified_at` is not null and `email` = ? limit 1
Bindings
0: [email protected]

Time: 0.25

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

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: 9
1: pzdwjXCa0b
2: email
3: [email protected]
4: 2022-05-17 08:40:50
5: email/random
6:
7: http://giuliani.it/quam-odit-alias-aut-deleniti
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: 9

Time: 0.32

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

Request

Method: POST
Route: api/auth/passwordless/email
Example: api/auth/passwordless/email
Input Value
email [email protected]
section email/random
callback http://giuliani.it/quam-odit-alias-aut-deleniti
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: 137
content-type: application/json