Skip to content

Commit

Permalink
(web admin) impose maximum days/validity of 825 in PKI ca and profiles,
Browse files Browse the repository at this point in the history
fixes #5828
  • Loading branch information
satkunas committed Oct 1, 2020
1 parent d9beeb5 commit 00ccbbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from '@/globals/pfValidators'
import {
required,
maxValue,
minValue,
email,
maxLength
Expand Down Expand Up @@ -433,7 +434,8 @@ export const validators = (form = {}, meta = {}) => {
},
days: {
[i18n.t('Days required.')]: required,
[i18n.t('Minimum 1 day(s).')]: minValue(1)
[i18n.t('Minimum 1 day(s).')]: minValue(1),
[i18n.t('Maximum 825 day(s).')]: maxValue(825)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
import {
email,
required,
maxValue,
minValue,
maxLength
} from 'vuelidate/lib/validators'
Expand Down Expand Up @@ -377,7 +378,8 @@ export const validators = (form = {}, meta = {}) => {
},
validity: {
[i18n.t('Validity required.')]: required,
[i18n.t('Minimum 1 day(s).')]: minValue(1)
[i18n.t('Minimum 1 day(s).')]: minValue(1),
[i18n.t('Maximum 825 day(s).')]: maxValue(825)
},
p12_mail_password: {
[i18n.t('Maximum 255 characters.')]: maxLength(255)
Expand Down

0 comments on commit 00ccbbb

Please sign in to comment.