Skip to content

Commit

Permalink
Merge pull request cheelim1#16 from swarupdonepudi/feature/support-fo…
Browse files Browse the repository at this point in the history
…r-default-password

added support for default password
  • Loading branch information
abc11h authored Jun 9, 2020
2 parents da6c37b + c296808 commit 1432e29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jumpcloud/resource_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func resourceUser() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"password": {
Type: schema.TypeString,
Optional: true,
},
"enable_mfa": {
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -65,6 +69,7 @@ func resourceUserCreate(d *schema.ResourceData, m interface{}) error {
Email: d.Get("email").(string),
Firstname: d.Get("firstname").(string),
Lastname: d.Get("lastname").(string),
Password: d.Get("password").(string),
EnableUserPortalMultifactor: d.Get("enable_mfa").(bool),
}
req := map[string]interface{}{
Expand Down Expand Up @@ -127,6 +132,7 @@ func resourceUserUpdate(d *schema.ResourceData, m interface{}) error {
Email: d.Get("email").(string),
Firstname: d.Get("firstname").(string),
Lastname: d.Get("lastname").(string),
Password: d.Get("password").(string),
EnableUserPortalMultifactor: d.Get("enable_mfa").(bool),
}

Expand Down

0 comments on commit 1432e29

Please sign in to comment.