Should allow to store new accounts.

This commit is contained in:
James Cole
2015-02-09 07:56:24 +01:00
parent 3841259779
commit ca504965f9
4 changed files with 118 additions and 8 deletions

View File

@@ -52,8 +52,8 @@ class AccountController extends Controller
public function store(AccountFormRequest $request, AccountRepositoryInterface $repository)
{
$accountData = [
'name' => $request->input('name'),
'accountType' => Config::get('firefly.accountTypeByIdentifier.' . $request->input('what')),
'name' => $request->input('name') . rand(1,1000),
'accountType' => $request->input('what'),
'active' => true,
'user' => Auth::user()->id,
'accountRole' => $request->input('accountRole'),