Generic email-provider hots.
This commit is contained in:
parent
55f04906ac
commit
2490d4d638
|
@ -78,7 +78,7 @@ We get credential (200)
|
||||||
If the user has associated an email with its account, he can signin using the email.
|
If the user has associated an email with its account, he can signin using the email.
|
||||||
|
|
||||||
```shell script
|
```shell script
|
||||||
curl -X POST --data $'{"identifier":{"type":"m.id.thirdparty","medium":"email","address":"alice@yopmail.com"},"password":"weak_password","type":"m.login.password","initial_device_display_name":"Portable"}' 'https://matrix.org/_matrix/client/r0/login'
|
curl -X POST --data $'{"identifier":{"type":"m.id.thirdparty","medium":"email","address":"alice@email-provider.org"},"password":"weak_password","type":"m.login.password","initial_device_display_name":"Portable"}' 'https://matrix.org/_matrix/client/r0/login'
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
@ -86,7 +86,7 @@ curl -X POST --data $'{"identifier":{"type":"m.id.thirdparty","medium":"email","
|
||||||
"identifier": {
|
"identifier": {
|
||||||
"type": "m.id.thirdparty",
|
"type": "m.id.thirdparty",
|
||||||
"medium": "email",
|
"medium": "email",
|
||||||
"address": "alice@yopmail.com"
|
"address": "alice@email-provider.org"
|
||||||
},
|
},
|
||||||
"password": "weak_password",
|
"password": "weak_password",
|
||||||
"type": "m.login.password",
|
"type": "m.login.password",
|
||||||
|
|
|
@ -200,13 +200,13 @@ curl -X POST --data $'{"auth":{"session":"xptUYoREDACTEDogOWAGVnbJQ","type":"m.l
|
||||||
We request a token to the homeserver. The `client_secret` is generated by the application
|
We request a token to the homeserver. The `client_secret` is generated by the application
|
||||||
|
|
||||||
```shell script
|
```shell script
|
||||||
curl -X POST --data $'{"client_secret":"53e679ea-oRED-ACTED-92b8-3012c49c6cfa","email":"alice@yopmail.com","send_attempt":0}' 'https://matrix.org/_matrix/client/r0/register/email/requestToken'
|
curl -X POST --data $'{"client_secret":"53e679ea-oRED-ACTED-92b8-3012c49c6cfa","email":"alice@email-provider.org","send_attempt":0}' 'https://matrix.org/_matrix/client/r0/register/email/requestToken'
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"client_secret": "53e679ea-oRED-ACTED-92b8-3012c49c6cfa",
|
"client_secret": "53e679ea-oRED-ACTED-92b8-3012c49c6cfa",
|
||||||
"email": "alice@yopmail.com",
|
"email": "alice@email-provider.org",
|
||||||
"send_attempt": 0
|
"send_attempt": 0
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue