firefly-iii/app/Http/Requests/DeleteAccountFormRequest.php

35 lines
510 B
PHP
Raw Normal View History

<?php
2016-02-05 05:08:25 -06:00
declare(strict_types = 1);
namespace FireflyIII\Http\Requests;
use Auth;
/**
* Class DeleteAccountFormRequest
*
2016-02-04 00:28:39 -06:00
*
* @package FireflyIII\Http\Requests
*/
class DeleteAccountFormRequest extends Request
{
/**
* @return bool
*/
public function authorize()
{
// Only allow logged in users
return Auth::check();
}
/**
* @return array
*/
public function rules()
{
return [
2015-05-03 05:58:55 -05:00
'password' => 'required',
];
}
}