diff --git a/protocol-spec/account-login-by-username.md b/protocol-spec/account-login-by-username.md index 8874e4d..cd6f0d1 100644 --- a/protocol-spec/account-login-by-username.md +++ b/protocol-spec/account-login-by-username.md @@ -15,7 +15,7 @@ This extension is intended for logging into user account on a server by username ## Use cases -*Request*: +- Request: ```json { @@ -29,7 +29,7 @@ This extension is intended for logging into user account on a server by username } ``` -*Response*: +- Response: ```json { @@ -44,7 +44,7 @@ This extension is intended for logging into user account on a server by username } ``` -*Error response*: +- Error response: ```json { @@ -72,10 +72,14 @@ None. ```typescript interface LoginRequestPayload { /** - * The username of account which user wants to login + * The username of account which user wants to login (can be omit if we set thirdPID) */ username: string, + /** + * Third party ID which have user (can be omit if we set username) + */ + thirdPID: string, /** * Password of new account diff --git a/protocol-spec/account-registration.md b/protocol-spec/account-registration.md index 2e981ea..4992d1e 100644 --- a/protocol-spec/account-registration.md +++ b/protocol-spec/account-registration.md @@ -18,6 +18,8 @@ This extension is intended for creating user accounts on a server ### Basic registration flow +`// TODO: introduce email/msisdn confirmation which prevents spam attacks` + - Client: ```json @@ -31,7 +33,8 @@ This extension is intended for creating user accounts on a server {"type":"email", "value":"juliet@capulett.com"}, {"type":"msisdn", "value":"+1234567890"}, ], - "password": "romeo1" + "password": "romeo1", + "loginOnSuccess": false } } ```