refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
21
app/Http/Requests/PasswordChangeRequest.php
Normal file
21
app/Http/Requests/PasswordChangeRequest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Validation\Rules\Password as PasswordRules;
|
||||
|
||||
class PasswordChangeRequest extends AuthorizedRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'password_current' => 'required',
|
||||
'password' => ['required', 'confirmed', PasswordRules::defaults()],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user