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

34 lines
503 B
PHP
Raw Normal View History

<?php
namespace FireflyIII\Http\Requests;
use Auth;
/**
* Class DeleteAccountFormRequest
*
2015-05-10 01:08:07 -05:00
* @codeCoverageIgnore
* @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',
];
}
}