mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-28 03:34:32 -06:00
36 lines
628 B
PHP
36 lines
628 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Http\Requests;
|
|
|
|
use Auth;
|
|
|
|
/**
|
|
* Class ProfileFormRequest
|
|
*
|
|
* @codeCoverageIgnore
|
|
* @package FireflyIII\Http\Requests
|
|
*/
|
|
class ProfileFormRequest extends Request
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
// Only allow logged in users
|
|
return Auth::check();
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'current_password' => 'required',
|
|
'new_password' => 'required|confirmed',
|
|
'new_password_confirmation' => 'required',
|
|
];
|
|
}
|
|
}
|