flexisip-account-manager/flexiapi/app/Rules/SIP.php
Timothée Jaussoin 30fcf9792f Update wording
Send a confirmation email when the password is set for the first time
Remove the API link from the menu and move it to the footer
Allow different domains to be set in the POST /api/accounts endpoints + related tests
Cleanup the API tests
Update the dependencies
2020-09-14 11:55:07 +02:00

25 lines
417 B
PHP

<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Support\Str;
class SIP implements Rule
{
public function __construct()
{
//
}
public function passes($attribute, $value)
{
// TODO complete me
return Str::contains($value, '@');
}
public function message()
{
return 'The :attribute must be a SIP address.';
}
}