Added validation for serial number in gr master importer
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 1m0s
Laravel Larastan / larastan (pull_request) Failing after 2m20s
Laravel Pint / pint (pull_request) Successful in 7m31s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 20s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 1m0s
Laravel Larastan / larastan (pull_request) Failing after 2m20s
Laravel Pint / pint (pull_request) Successful in 7m31s
This commit is contained in:
@@ -84,8 +84,8 @@ class GrMasterImporter extends Importer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Str::length($this->data['serial_number']) < 9 || ! ctype_alnum($this->data['serial_number'])) {
|
if (Str::length($this->data['serial_number']) < 17 || ! ctype_alnum($this->data['serial_number'])) {
|
||||||
$warnMsg[] = 'Invalid serial number found';
|
$warnMsg[] = 'serial number should contain minimum 17 digits and alpha numeric values.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($this->data['gr_number'])) {
|
if (empty($this->data['gr_number'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user