diff --git a/LICENSE b/LICENSE index 4d1b69fde2e5..07daadbcb3fb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ Attribution Assurance License -Copyright (c) 2013 by Hillel Coren +Copyright (c) 2014 by Hillel Coren http://www.hillelcoren.com All Rights Reserved diff --git a/app/config/app.php b/app/config/app.php index 37e2e08b078e..5375b22c0b13 100755 --- a/app/config/app.php +++ b/app/config/app.php @@ -214,7 +214,7 @@ return array( 'Typography' => 'Bootstrapper\Typography', 'Confide' => 'Zizaco\Confide\ConfideFacade', 'Former' => 'Former\Facades\Former', - 'Datatable' => 'Chumper\Datatable\Facades\Datatable', + 'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade', 'Omnipay' => 'Omnipay\Omnipay', 'CreditCard' => 'Omnipay\Common\CreditCard', 'Image' => 'Intervention\Image\Facades\Image', diff --git a/app/config/packages/zizaco/confide/config.php b/app/config/packages/zizaco/confide/config.php index 2e60fdad1c63..e26ae0a94eab 100755 --- a/app/config/packages/zizaco/confide/config.php +++ b/app/config/packages/zizaco/confide/config.php @@ -111,7 +111,7 @@ return array( | table, otherwise they will not be able to login after the payment. | */ - 'signup_email' => true, - 'signup_confirm' => true, + 'signup_email' => false, + 'signup_confirm' => false, ); diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index d9d673f753a7..eae0d6923bfb 100755 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -1,16 +1,19 @@ accountRepo = $accountRepo; + $this->mailer = $mailer; } public function getStarted() @@ -571,11 +574,14 @@ class AccountController extends \BaseController { $user->first_name = trim(Input::get('new_first_name')); $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_confirmation = trim(Input::get('new_password')); $user->registered = true; $user->amend(); + $this->mailer->sendConfirmation($user); + $activities = Activity::scope()->get(); foreach ($activities as $activity) { diff --git a/app/controllers/HomeController.php b/app/controllers/HomeController.php index c6fafe9a8b88..459ad6bd2ef8 100755 --- a/app/controllers/HomeController.php +++ b/app/controllers/HomeController.php @@ -29,6 +29,11 @@ class HomeController extends BaseController { return View::make('contact_us'); } + public function showTerms() + { + return View::make('terms'); + } + public function doContactUs() { $email = Input::get('email'); diff --git a/app/ninja/mailers/UserMailer.php b/app/ninja/mailers/UserMailer.php index d4037be6608a..2ed34b9bb6d1 100755 --- a/app/ninja/mailers/UserMailer.php +++ b/app/ninja/mailers/UserMailer.php @@ -8,6 +8,23 @@ use Utils; class UserMailer extends Mailer { + public function sendConfirmation(User $user) + { + if (!$user->email) + { + return; + } + + $view = 'confirm'; + $subject = 'Invoice Ninja Account Confirmation'; + + $data = [ + 'user' => $user + ]; + + $this->sendTo($user->email, CONTACT_EMAIL, $subject, $view, $data); + } + public function sendNotification(User $user, Invoice $invoice, $type, Payment $payment = null) { if (!$user->email) diff --git a/app/ninja/repositories/InvoiceRepository.php b/app/ninja/repositories/InvoiceRepository.php index 73cb2fb4b161..c8327d0311a8 100755 --- a/app/ninja/repositories/InvoiceRepository.php +++ b/app/ninja/repositories/InvoiceRepository.php @@ -127,7 +127,7 @@ class InvoiceRepository $invoice->invoice_date = Utils::toSqlDate($data['invoice_date']); $invoice->due_date = Utils::toSqlDate($data['due_date']); - $invoice->is_recurring = $data['is_recurring']; + $invoice->is_recurring = $data['is_recurring'] ? true : false; $invoice->frequency_id = $data['frequency_id'] ? $data['frequency_id'] : 0; $invoice->start_date = Utils::toSqlDate($data['start_date']); $invoice->end_date = Utils::toSqlDate($data['end_date']); diff --git a/app/routes.php b/app/routes.php index 483daaf57af2..329213dec6da 100755 --- a/app/routes.php +++ b/app/routes.php @@ -57,6 +57,7 @@ Route::get('/send_emails', function() { Route::get('/', 'HomeController@showWelcome'); Route::get('/rocksteady', 'HomeController@showWelcome'); Route::get('/about', 'HomeController@showAboutUs'); +Route::get('/terms', 'HomeController@showTerms'); Route::get('/contact', 'HomeController@showContactUs'); Route::post('/contact', 'HomeController@doContactUs'); diff --git a/app/views/about_us.blade.php b/app/views/about_us.blade.php index 6c1535eb5138..f5efb7fdea2a 100644 --- a/app/views/about_us.blade.php +++ b/app/views/about_us.blade.php @@ -9,36 +9,17 @@ @stop @section('body') -<<<<<<< HEAD - -======= }); function isStorageSupported() { @@ -53,75 +34,32 @@ $('#startForm').submit(); } - ->>>>>>> upstream/master -
Free yourself from online invoicing platforms with high monthly fees and limited functionality. Being open source allows us fast app development, security audits by the open-course community, and we can keep it FREE!
-Look professional from day #1. Select one of our beautiful invoice templates to suit your company identity, switch between designs in real time to preview invoices & email them to clients with one click. The live preview PDF function was designed for an efficient and hassle-free experience, and it’s awesome! -
-Authorize.net, Beanstream, PayPal? InvoiceNinja supports the most popular online payment gateways! If you need help integrating a third party gateway we don’t yet support, please contact us! We’re happy to help! If you need assistance of want to learn more about online payment solutions, contact us!
-