Files
klz-cables.com/.pnpm-store/v10/files/65/638d5509a222979593bfc0ca82840a436c4fbaed59bd1d1eb1268b3287799175825553f9913b2edf59f8c0547c923166b03980c37fbbca9097522e67b8d793
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

25 lines
558 B
Plaintext

import { username } from '../../fields/validations.js';
export const usernameFieldConfig = {
name: 'username',
type: 'text',
admin: {
components: {
Field: false
}
},
hooks: {
beforeChange: [
({ value })=>{
if (value) {
return value.toLowerCase().trim();
}
}
]
},
label: ({ t })=>t('authentication:username'),
required: true,
unique: true,
validate: username
};
//# sourceMappingURL=username.js.map