firefly-iii/app/Http/Requests/ProfileFormRequest.php
2015-03-29 07:51:56 +02:00

34 lines
609 B
PHP

<?php
namespace FireflyIII\Http\Requests;
use Auth;
/**
* Class ProfileFormRequest
*
* @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',
];
}
}