Correctly pass along allowed IPs for client API keys, closes #2244

This commit is contained in:
Dane Everitt
2020-08-17 19:48:51 -07:00
parent a6cc53793d
commit d41b86f0ea
2 changed files with 15 additions and 5 deletions

View File

@@ -17,4 +17,14 @@ class StoreApiKeyRequest extends ClientApiRequest
'allowed_ips.*' => 'ip',
];
}
/**
* @return array|string[]
*/
public function messages()
{
return [
'allowed_ips.*' => 'All of the IP addresses entered must be valid IPv4 addresses.',
];
}
}