@objectstack/platform-objects 14.5.0 → 14.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -139,7 +139,12 @@ var SysUser = ObjectSchema.create({
139
139
  label: "Phone Number",
140
140
  type: "text",
141
141
  required: false,
142
- helpText: "Sign-in phone number (E.164, e.g. +8613800000000). Required when no email is given."
142
+ helpText: "Sign-in phone number (E.164, e.g. +8613800000000). Required when no email is given.",
143
+ // Only offer phone when the opt-in phoneNumber auth plugin is loaded —
144
+ // otherwise the create-user endpoint rejects a phone with
145
+ // "Phone numbers require the phoneNumber auth plugin". `features.phoneNumber`
146
+ // is served in /api/v1/auth/config (getPublicConfig).
147
+ visible: "features.phoneNumber == true"
143
148
  },
144
149
  { field: "name", required: false },
145
150
  {