Verified Commit 6a936f38 authored by Korko's avatar Korko
Browse files

Limit expiration date to 6 month also in form validation

parent df6006ff
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
return Moment(value, 'YYYY-MM-DD').isSameOrAfter(formatMoment(1, 'day')); return Moment(value, 'YYYY-MM-DD').isSameOrAfter(formatMoment(1, 'day'));
}, },
maxValue(value) { maxValue(value) {
return Moment(value, 'YYYY-MM-DD').isSameOrBefore(formatMoment(1, 'year')); return Moment(value, 'YYYY-MM-DD').isSameOrBefore(formatMoment(6, 'month'));
} }
} }
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment