diff --git a/.env.example b/.env.example index 651ccbbc5207..bd40885edb04 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ APP_ENV=development APP_DEBUG=true APP_URL=http://ninja.dev +APP_CIPHER=rijndael-128 APP_KEY= DB_TYPE=mysql diff --git a/app/Console/Commands/SendRecurringInvoices.php b/app/Console/Commands/SendRecurringInvoices.php index ece16d94baa5..a5fe2cdaf9b9 100644 --- a/app/Console/Commands/SendRecurringInvoices.php +++ b/app/Console/Commands/SendRecurringInvoices.php @@ -1,9 +1,15 @@ invoice = $invoice; + } + +} diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index c7a75d356dd5..1475cbb5cb09 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -1,5 +1,6 @@ $count < 2]); + return View::make('accounts.payments', ['showAdd' => $count < 3]); } } elseif ($section == ACCOUNT_NOTIFICATIONS) { $data = [ @@ -554,6 +555,7 @@ class AccountController extends BaseController $user->notify_sent = Input::get('notify_sent'); $user->notify_viewed = Input::get('notify_viewed'); $user->notify_paid = Input::get('notify_paid'); + $user->notify_approved = Input::get('notify_approved'); $user->save(); Session::flash('message', trans('texts.updated_settings')); @@ -675,7 +677,7 @@ class AccountController extends BaseController $user->last_name = trim(Input::get('new_last_name')); $user->email = trim(strtolower(Input::get('new_email'))); $user->username = $user->email; - $user->password = trim(Input::get('new_password')); + $user->password = bcrypt(trim(Input::get('new_password'))); $user->registered = true; $user->save(); @@ -738,4 +740,12 @@ class AccountController extends BaseController return Redirect::to('/')->with('clearGuestKey', true); } + + public function resendConfirmation() + { + $user = Auth::user(); + $this->userMailer->sendConfirmation($user); + + return Redirect::to('/company/details')->with('message', trans('texts.confirmation_resent')); + } } diff --git a/app/Http/Controllers/AccountGatewayController.php b/app/Http/Controllers/AccountGatewayController.php index 489b2fb2d65c..29002f8727b1 100644 --- a/app/Http/Controllers/AccountGatewayController.php +++ b/app/Http/Controllers/AccountGatewayController.php @@ -25,10 +25,11 @@ class AccountGatewayController extends BaseController ->join('gateways', 'gateways.id', '=', 'account_gateways.gateway_id') ->where('account_gateways.deleted_at', '=', null) ->where('account_gateways.account_id', '=', Auth::user()->account_id) - ->select('account_gateways.public_id', 'gateways.name', 'account_gateways.deleted_at'); + ->select('account_gateways.public_id', 'gateways.name', 'account_gateways.deleted_at', 'account_gateways.gateway_id'); return Datatable::query($query) ->addColumn('name', function ($model) { return link_to('gateways/'.$model->public_id.'/edit', $model->name); }) + ->addColumn('payment_type', function ($model) { return Gateway::getPrettyPaymentType($model->gateway_id); }) ->addColumn('dropdown', function ($model) { $actions = '