mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +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
23 lines
368 B
PHP
23 lines
368 B
PHP
<?php
|
|
|
|
namespace App\Rules;
|
|
|
|
use Illuminate\Contracts\Validation\Rule;
|
|
|
|
class WithoutSpaces implements Rule
|
|
{
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
public function passes($attribute, $value)
|
|
{
|
|
return preg_match('/^\S*$/u', $value);
|
|
}
|
|
|
|
public function message()
|
|
{
|
|
return 'The :attribute contains spaces';
|
|
}
|
|
}
|