diff --git a/account_users.go b/account_users.go index 50bae11c3..498ecd766 100644 --- a/account_users.go +++ b/account_users.go @@ -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 diff --git a/test/integration/account_users_test.go b/test/integration/account_users_test.go index a6935bf12..2c156fe8b 100644 --- a/test/integration/account_users_test.go +++ b/test/integration/account_users_test.go @@ -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") } } @@ -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") } }