Skip to content

Commit

Permalink
fix: verified_phone_number type in account_users (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
yec-akamai authored Jun 22, 2023
1 parent 276a9ca commit 1940d5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion account_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type User struct {
TFAEnabled bool `json:"tfa_enabled"`
SSHKeys []string `json:"ssh_keys"`
PasswordCreated *time.Time `json:"-"`
VerifiedPhoneNumber string `json:"verified_phone_number"`
VerifiedPhoneNumber *string `json:"verified_phone_number"`
}

// UserCreateOptions fields are those accepted by CreateUser
Expand Down
4 changes: 2 additions & 2 deletions test/integration/account_users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestUser_Get(t *testing.T) {
if user.TFAEnabled {
t.Error("expected TFA is disabled")
}
if user.VerifiedPhoneNumber != "" {
if user.VerifiedPhoneNumber != nil {
t.Error("expected phone number is not set")
}
}
Expand Down Expand Up @@ -147,7 +147,7 @@ func TestUsers_List(t *testing.T) {
if newUser.TFAEnabled {
t.Error("expected TFA is disabled")
}
if newUser.VerifiedPhoneNumber != "" {
if newUser.VerifiedPhoneNumber != nil {
t.Error("expected phone number is not set")
}
}
Expand Down

0 comments on commit 1940d5c

Please sign in to comment.