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

41 lines
718 B
PHP
Raw Normal View History

<?php
/**
* DeleteAccountFormRequest.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
2016-02-05 05:08:25 -06:00
declare(strict_types = 1);
namespace FireflyIII\Http\Requests;
/**
* 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
2016-09-16 05:07:45 -05:00
return auth()->check();
}
/**
* @return array
*/
public function rules()
{
return [
2015-05-03 05:58:55 -05:00
'password' => 'required',
];
}
}