feat: implement fiscal ID validation; replace fiscal code validator and update related components
This commit is contained in:
@@ -68,6 +68,11 @@ export class FormErrorsService {
|
||||
const info = errors['invalidUsername'];
|
||||
out.push({ key: 'invalidUsername', message: info.message ?? `${label} معتبر نیست.` });
|
||||
}
|
||||
|
||||
if (errors['invalidFiscalId']) {
|
||||
const info = errors['invalidFiscalId'];
|
||||
out.push({ key: 'invalidFiscalId', message: info.message ?? `${label} معتبر نیست.` });
|
||||
}
|
||||
// fallback: include any other error keys
|
||||
Object.keys(errors).forEach((k) => {
|
||||
if (
|
||||
@@ -80,6 +85,7 @@ export class FormErrorsService {
|
||||
'max',
|
||||
'email',
|
||||
'pattern',
|
||||
'invalidFiscalId',
|
||||
].indexOf(k) === -1
|
||||
) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user