feat: updated cli to include password on login

This commit is contained in:
=
2024-06-12 22:43:59 +05:30
parent 93d5180dfc
commit e95109c446
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -233,6 +233,7 @@ type GetLoginOneV2Response struct {
type GetLoginTwoV2Request struct { type GetLoginTwoV2Request struct {
Email string `json:"email"` Email string `json:"email"`
ClientProof string `json:"clientProof"` ClientProof string `json:"clientProof"`
Password string `json:"password"`
} }
type GetLoginTwoV2Response struct { type GetLoginTwoV2Response struct {
+1
View File
@@ -539,6 +539,7 @@ func getFreshUserCredentials(email string, password string) (*api.GetLoginOneV2R
loginTwoResponseResult, err := api.CallLogin2V2(httpClient, api.GetLoginTwoV2Request{ loginTwoResponseResult, err := api.CallLogin2V2(httpClient, api.GetLoginTwoV2Request{
Email: email, Email: email,
ClientProof: hex.EncodeToString(srpM1), ClientProof: hex.EncodeToString(srpM1),
Password: password,
}) })
if err != nil { if err != nil {