mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 04:26:11 +00:00
feat: updated cli to include password on login
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user