Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
Adds user password update functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
vijetm committed Nov 15, 2019
1 parent a95efd4 commit 4d300d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion okta/resource_okta_user.go
Expand Up @@ -272,6 +272,7 @@ func resourceUser() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
ValidateFunc: validation.StringLenBetween(8, 1000), // Hope no one uses password > 1000 chars
Description: "User Password",
},
"recovery_question": &schema.Schema{
Expand All @@ -282,7 +283,8 @@ func resourceUser() *schema.Resource {
"recovery_answer": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringLenBetween(4, 100), // Hope no one uses > 10
Sensitive: true,
ValidateFunc: validation.StringLenBetween(4, 1000),
Description: "User Password Recovery Answer",
},
},
Expand Down

0 comments on commit 4d300d4

Please sign in to comment.