2015-04-22 07:54:56 +02:00
|
|
|
<?php
|
2016-05-20 12:41:23 +02:00
|
|
|
/**
|
|
|
|
* 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 12:08:25 +01:00
|
|
|
declare(strict_types = 1);
|
2015-04-22 07:54:56 +02:00
|
|
|
|
|
|
|
namespace FireflyIII\Http\Requests;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class DeleteAccountFormRequest
|
|
|
|
*
|
2016-02-04 07:28:39 +01:00
|
|
|
*
|
2015-04-22 07:54:56 +02:00
|
|
|
* @package FireflyIII\Http\Requests
|
|
|
|
*/
|
|
|
|
class DeleteAccountFormRequest extends Request
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function authorize()
|
|
|
|
{
|
|
|
|
// Only allow logged in users
|
2016-09-16 12:07:45 +02:00
|
|
|
return auth()->check();
|
2015-04-22 07:54:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
2015-05-03 12:58:55 +02:00
|
|
|
'password' => 'required',
|
2015-04-22 07:54:56 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|