Fix jwt-token
This commit is contained in:
@@ -129,7 +129,10 @@ const TenantModal = ({ isOpen, onClose, tenant = null, onSave }) => {
|
|||||||
|
|
||||||
const tenantData = {
|
const tenantData = {
|
||||||
...formData,
|
...formData,
|
||||||
auth_config: cleanAuthConfig
|
auth_config: cleanAuthConfig,
|
||||||
|
// Convert empty email strings to null to avoid validation errors
|
||||||
|
admin_email: formData.admin_email?.trim() || null,
|
||||||
|
billing_email: formData.billing_email?.trim() || null
|
||||||
}
|
}
|
||||||
|
|
||||||
await onSave(tenantData)
|
await onSave(tenantData)
|
||||||
@@ -238,6 +241,19 @@ const TenantModal = ({ isOpen, onClose, tenant = null, onSave }) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||||
|
Billing Email
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
value={formData.billing_email}
|
||||||
|
onChange={(e) => setFormData(prev => ({ ...prev, billing_email: e.target.value }))}
|
||||||
|
className="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||||
|
placeholder="billing@acme.com"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
|||||||
Reference in New Issue
Block a user