mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-24 14:08:09 +00:00
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
25 lines
417 B
PHP
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.';
|
|
}
|
|
}
|