Commit Graph

454 Commits

Author SHA1 Message Date
David Bomba 9bca3ef170 Fixes for session domains 2022-01-15 18:50:16 +11:00
David Bomba f68f79c1e8 Restrict client access only to current company instead of account wide 2022-01-15 18:04:41 +11:00
David Bomba ad30e691e2 Formatting 2022-01-15 16:04:40 +11:00
David Bomba 693d84b243 Session handling with custom domains 2022-01-15 15:58:33 +11:00
David Bomba 3af749bdb0 Enforce company locale 2022-01-15 15:07:40 +11:00
David Bomba 37d6701780 Adjust invitation controller to deal with deleted contacts 2022-01-13 15:10:43 +11:00
David Bomba 8faa687ae4 Return error message when dealing with clients who have been deleted 2022-01-12 22:52:56 +11:00
David Bomba 0a065aefc1 Fixes for edge cases around duplicate contacts in portal 2021-12-20 11:20:22 +11:00
David Bomba ab114e2587 Fixes for company_key 2021-12-14 20:33:41 +11:00
David Bomba 5323458411 Fixes for downloading archived PDFs 2021-12-14 11:33:25 +11:00
David Bomba c6a42b2a90 minor fixes for contact registration 2021-12-13 15:22:16 +11:00
David Bomba 97451c8edf Fixes for client authentication 2021-12-12 21:39:12 +11:00
David Bomba 65493c47a5 Change batch() to ->queue() 2021-12-11 20:49:29 +11:00
David Bomba d2a929b975 Refactor client portal authentication 2021-12-09 21:50:29 +11:00
David Bomba de0bebcd2c refactor 2021-12-09 16:34:23 +11:00
David Bomba cd41ce4ceb Login contacts using their ID - allows us to login contacts with the same email address 2021-12-08 08:45:24 +11:00
David Bomba 8aeabb7e1f Performance improvements for Client Portal 2021-12-07 22:34:50 +11:00
David Bomba 47d6715fb8 Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop 2021-12-07 22:14:49 +11:00
David Bomba 49ecf295a8 Performance improvements for client portal 2021-12-07 22:14:46 +11:00
David Bomba 66eb99951e Fixes for resolving companies and accounts for contact reset 2021-12-02 09:00:40 +11:00
David Bomba 18bb84f2a1 Fixes for client portal 2021-11-21 21:08:21 +11:00
David Bomba d0be8f744c Restrict API access for free/unpaid accounts 2021-11-10 08:23:22 +11:00
David Bomba be45998ebe Fixes for invitation 404 messaging 2021-11-08 10:17:49 +11:00
David Bomba e319af89d9 Fixes for invitations 2021-10-14 18:58:13 +11:00
David Bomba 91333a50f3 Fixes for invitations 2021-10-14 18:54:17 +11:00
David Bomba 0cfe5bc39a Refactor invitations 2021-10-14 16:25:09 +11:00
David Bomba 105e6282be logging 2021-10-13 16:47:53 +11:00
David Bomba 1fbbaaad4d Minor N+1 fixes 2021-10-13 14:44:10 +11:00
David Bomba 9e1418cb11 performance improvements 2021-10-08 16:29:06 +11:00
David Bomba 9c18ab7230 Improve query efficiency 2021-10-08 15:00:17 +11:00
David Bomba ef11a2258d Add Pay Link Functionality 2021-10-06 14:47:17 +11:00
David Bomba 1356b3d7ad Minor fixes for client request validation 2021-09-13 08:42:15 +10:00
David Bomba 9458069abb Fixes for special character encoding 2021-09-08 07:05:53 +10:00
David Bomba bdb771e4ca Fixes for query logging 2021-09-05 15:48:15 +10:00
David Bomba 25d8b8b079 Fixes for eager loading 2021-09-05 14:03:21 +10:00
David Bomba 61b007e53a Minor adjustments for query logging 2021-09-05 09:15:21 +10:00
David Bomba 6bab442cc6 Fixes for company tokens on login 2021-09-05 09:01:17 +10:00
David Bomba eb1547c187 Remove query count logs 2021-09-05 07:46:03 +10:00
David Bomba 74e94075b5 disable query logging 2021-09-04 17:49:42 +10:00
David Bomba 32dc4554c2 Fixes for eager loading with multiple groups 2021-09-04 17:28:08 +10:00
David Bomba 296cb0511b Fixes for hosted onboarding 2021-09-01 14:02:57 +10:00
David Bomba 700fd6bf99 Fixes for password protection route - always check if a password is presented! 2021-08-31 14:09:12 +10:00
Benjamin Beganović 2ed6e7643d Redirect to url if `next` is available for key_login 2021-08-10 10:18:05 +02:00
David Bomba e35709145a Fixes for preview 2021-08-06 18:02:32 +10:00
David Bomba 9d3867f818 Fixes for preview 2021-08-06 17:57:24 +10:00
David Bomba f90115aa8e Fixes for incorrect confirmation codes 2021-07-27 08:45:46 +10:00
David Bomba d82491d163 Email user when another user is added into the system 2021-07-19 14:17:58 +10:00
David Bomba bcc286e537 Handle base64 encoded passwords 2021-07-19 10:57:13 +10:00
David Bomba a1e9de5807 Minor Clean up 2021-07-17 22:01:00 +10:00
David Bomba da177661ec Fixes for subscriptions 2021-07-15 21:00:24 +10:00
David Bomba ad0b2b8ec3 Prevent ninja company from being deleted 2021-07-11 10:16:27 +10:00
David Bomba 57bd1f9c9d Log excessively large queries 2021-07-09 09:08:20 +10:00
David Bomba 5bcbda2f47 Minor fixes for document downloads 2021-07-02 07:57:55 +10:00
David Bomba 32698b33d7 Document middleware 2021-07-02 07:23:25 +10:00
David Bomba 69461104fe Fixes for client gateways 2021-07-01 15:56:44 +10:00
David Bomba 4c00403d8c Fixes for contact registration 2021-06-28 19:56:04 +10:00
David Bomba 8f78f93537 Log exact IP if reported by cloudflare 2021-06-22 10:51:43 +10:00
David Bomba 36f6cbbcc9 Update license in codebase 2021-06-16 16:58:16 +10:00
David Bomba 3d880f2dd3 Updates for Password Protection with OAuth 2021-06-09 16:22:25 +10:00
David Bomba 26a1e34268 Logging for Password Protection 2021-06-09 16:01:09 +10:00
David Bomba d68e40433c Fixes for client portal links 2021-06-08 21:45:23 +10:00
= e37613a5a1 Company Registration 2021-06-05 20:31:11 +10:00
= e6eb899f79 Fixes for contact registration 2021-06-05 20:12:10 +10:00
David Bomba 3b14074c0b Fixes for magic links 2021-06-03 09:50:31 +10:00
David Bomba 8d2cebb6e5 Fixes for magic links 2021-06-02 21:47:28 +10:00
David Bomba fc444b7c39 Fixes for billing portal 2021-06-02 18:55:33 +10:00
David Bomba aac53155fc Fixes for CORS 2021-06-02 13:31:53 +10:00
David Bomba 4c0c770c56 Fixes for CORS 2021-06-02 13:14:40 +10:00
David Bomba 30e0d4a6ab Fixes for CORS 2021-06-02 12:39:44 +10:00
David Bomba 37de17cf38 Fixes for CORS 2021-06-02 10:48:48 +10:00
David Bomba 980a687322 Fixes for CORS 2021-06-02 10:02:05 +10:00
David Bomba f2c11f8180 Fixes for CORS 2021-06-02 09:07:53 +10:00
David Bomba 5252f83ec6 Fixes for CORS 2021-06-01 23:08:32 +10:00
David Bomba 92ad3621de Fixes for CORS 2021-06-01 21:43:36 +10:00
David Bomba e69cd0699e Fixes for CORS 2021-06-01 20:51:38 +10:00
David Bomba 20eca600e3 Fixes for CORS 2021-06-01 20:06:46 +10:00
David Bomba c125dca154 Fixes for client portal login/auth/register pages 2021-05-27 09:14:21 +10:00
David Bomba 5e33eb9130 Generate temp email address for direct client portal viewing. 2021-05-25 08:32:08 +10:00
David Bomba 0e61a6f491 Fixes for random subdomain generator 2021-05-24 19:39:21 +10:00
David Bomba af04fb9a37 Fixes for MultiDB UserController 2021-05-24 10:41:23 +10:00
= 735771eef2 v5.1.63 2021-05-21 17:39:59 +10:00
David Bomba f39bdaef73 Fixes for Stripe Connect 2021-05-18 13:28:59 +10:00
David Bomba f9347fc652 fixes for factories 2021-05-16 19:44:44 +10:00
David Bomba 499d9f6b86 Fixes for client portal constraint 2021-05-15 17:00:17 +10:00
David Bomba e59f00d390 Fixes for domains 2021-05-15 14:38:32 +10:00
David Bomba 364f7addb6 Fixes for subdomain resolution for MultiDB 2021-05-15 14:00:29 +10:00
David Bomba d7d76ae6ea MultiDB domain resolution for client portals 2021-05-15 13:31:41 +10:00
Benjamin Beganović a48556a557 Improve CheckClientExistence.php middleware 2021-05-14 12:33:12 +02:00
David Bomba 97b49f8df6 Fixes for download export button 2021-05-14 13:32:37 +10:00
David Bomba 777c2dd24a Reorder middleware to allow route model binding to be delayed 2021-05-13 22:41:32 +10:00
David Bomba 8a582f7800 Fixes for reset password 2021-05-13 20:18:30 +10:00
= daff65de01 Working on password reset throttling 2021-05-13 19:13:51 +10:00
David Bomba f60b9c30eb Add new login notification 2021-05-12 16:18:32 +10:00
David Bomba f19af6290a fixes for event listeners 2021-05-11 15:17:45 +10:00
David Bomba ad2742a0d6 Disable client portal 2021-05-11 11:55:47 +10:00
David Bomba 4979ed94de Minor fixes 2021-05-10 21:05:44 +10:00
David Bomba 16c5665cc6 Recurring Invoice history / activities 2021-05-10 20:20:52 +10:00
David Bomba 51effc3dfe Fixes for query logging 2021-05-08 07:43:53 +10:00
David Bomba ae1af32b59 Improve quality for url 2021-05-07 08:31:00 +10:00
David Bomba 991fa7079e Fixes for password protection 2021-05-05 16:44:31 +10:00
David Bomba a7abc2cd1b Fixes for password protection 2021-05-05 16:30:12 +10:00
David Bomba 23f7a74e2c Fixes for password protection 2021-05-05 16:11:40 +10:00
David Bomba b9fece424f Minor fixes for password protection cache 2021-05-05 15:56:54 +10:00
= e53d5dcb13 fixes for logging 2021-05-02 21:40:15 +10:00
David Bomba 592aba6bb0 analytics 2021-04-29 13:43:40 +10:00
David Bomba 342b383115 Minor fixes for imports 2021-04-29 12:12:44 +10:00
David Bomba deb55dd6c8 Add in constrained queries 2021-04-29 11:31:04 +10:00
David Bomba f26948b76f Log query analytics 2021-04-29 09:19:00 +10:00
David Bomba 1f87ca6ca2 Delete migration directory after Import 2021-04-25 21:04:48 +10:00
David Bomba a09de38f35 Default mailer middleware 2021-04-25 20:22:24 +10:00
Benjamin Beganović c300ffc4d9 passwordless login 2021-03-31 18:10:44 +02:00
David Bomba 404ee307fd Magic link maker 2021-03-31 11:07:54 +11:00
= 7173ba2931 catch project exceptions 2021-03-20 11:16:29 +11:00
David Bomba 34b9877868 Minor fixes 2021-03-19 23:37:57 +11:00
David Bomba b91fcf1b34
Merge branch 'v5-develop' into billing_subscriptions 2021-03-10 09:27:28 +11:00
David Bomba 59beb9dd39 Customize the password protect timeout 2021-03-09 21:52:48 +11:00
David Bomba cd48ae78f9 Minor fixes 2021-03-09 21:30:34 +11:00
David Bomba 9a15d2c6cf Minor fixes 2021-03-09 15:43:54 +11:00
David Bomba 2595d3d2a4 Fixes for typo in password protection 2021-03-08 07:56:44 +11:00
David Bomba 20440189d2 Fixes for password protection middleware 2021-03-04 16:03:28 +11:00
David Bomba 11ad2cd57e Fixes for caching protection route 2021-03-04 12:17:29 +11:00
David Bomba 365c190cca Remove return type for User Service 2021-03-04 10:12:34 +11:00
David Bomba 9a2160c325 Verified users only for hosted platform 2021-03-01 13:51:00 +11:00
David Bomba d238d53b26 Delete PDF helper 2021-03-01 10:40:18 +11:00
David Bomba e668e7fd5a Fixes for Quotes not attaching to emails 2021-02-28 13:12:55 +11:00
David Bomba 4884b039df User verified middleware 2021-02-26 08:18:14 +11:00
David Bomba 29b4e6d1b7 minor fixes 2021-02-25 21:41:18 +11:00
David Bomba 9b1b677e8e Working on OAuth password protection routes 2021-02-24 08:12:23 +11:00
Benjamin Beganović 10733418c6 Allow default company registration without company key in the URL 2021-02-17 12:13:27 +01:00
David Bomba 934610a01c Update copyright + version bump + set canadian dollar symbol to $ 2021-01-04 08:54:54 +11:00
= 7a058c9ae6 Move logging to nlog 2020-12-30 08:10:03 +11:00
Benjamin Beganović 23a64562c9 fix issue with setup & apply php-cs-fixer 2020-12-09 13:38:22 +01:00
David Bomba 594dda9b65 fixes for delivery notes{ 2020-12-08 20:18:17 +11:00
Benjamin Beganović 4959917b7e fix issue with multiple companies switching 2020-12-03 15:33:18 +01:00
Benjamin Beganović ae88d5e08e php-cs-fixer format 2020-11-25 15:19:52 +01:00
David Bomba fe5218fd2c Fixes for resolving company_user from user object 2020-11-13 21:42:06 +11:00
David Bomba 28cbd75fcb Fixes for credit PDF 2020-11-11 11:13:39 +11:00
David Bomba ae361ed22f Update composer 2020-11-02 08:49:58 +11:00
= 6479b2fd3e Fix for laravel 8 route file regression + psalm cleanup 2020-11-01 16:09:09 +11:00
David Bomba 9aeb2d7a5b Psalm cleanup 2020-10-28 21:10:49 +11:00
David Bomba 8f53424017 Fixes 2020-10-27 06:10:04 +11:00
David Bomba c8e2d94b3f Fixes for tests + remove swoole 2020-10-22 21:14:14 +11:00
David Bomba a3afa8ede9 Remove project name unique constraint 2020-10-19 21:59:58 +11:00
David Bomba 708db5a991 Improve eager loading - first load 2020-10-18 18:46:10 +11:00
David Bomba 44d31ce326 Move cache clearance to base controller 2020-10-09 17:55:03 +11:00
David Bomba c48b02a690 Static template data 2020-10-09 13:28:33 +11:00
David Bomba cf7ee6338e Working on templates 2020-10-09 12:59:59 +11:00
David Bomba 4fe1c29751 Working on recurring 2020-10-06 12:36:25 +11:00
David Bomba 484b28d3ce Fixes for recurring migratoin 2020-10-06 11:52:16 +11:00
David Bomba 06b7dfa291 Fixes for Recurring 2020-10-04 21:24:55 +11:00
David Bomba 6d779030dc Trust proxies setup 2020-10-01 09:32:27 +10:00
David Bomba 8756a89885 Allow login using contact_key or client_hash 2020-09-30 08:42:55 +10:00
David Bomba 2627ec8894 PHP Cli version 2020-09-23 14:11:34 +10:00
David Bomba c59e6a2141 Client contact authentication using contact_key 2020-09-23 13:56:56 +10:00
David Bomba 0e5199e052 Working on contact auth using contact key 2020-09-23 11:45:07 +10:00
David Bomba ab0ec5e2cb Vendor API endpoints 2020-09-23 10:16:19 +10:00
= 83be13c049 fixes for types 2020-09-19 12:15:38 +10:00
= 20e4c4b1ad Improve eager loading 2020-09-19 12:05:54 +10:00
= 88eb05786e Fixes for updateinvoicepayment 2020-09-19 11:20:14 +10:00
David Bomba 23c22dd9dc Fixes for tests 2020-09-19 10:17:13 +10:00
David Bomba 77119e69fe Add primary/secondary_color to companysettings 2020-09-08 14:02:00 +10:00
David Bomba f98319a1c1 Fixes for phpunit 2020-09-07 09:29:46 +10:00
David Bomba ba75a44eb8
Laravel 7.x Shift (#40)
* Adopt Laravel coding style

The Laravel framework adopts the PSR-2 coding style with some additions.
Laravel apps *should* adopt this coding style as well.

However, Shift allows you to customize the adopted coding style by
adding your own [PHP CS Fixer][1] `.php_cs` config to your project.

You may use [Shift's .php_cs][2] file as a base.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

* Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift core files

* Shift to Throwable

* Add laravel/ui dependency

* Unindent vendor mail templates

* Shift config files

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them so you can review the commit diff for
changes. Moving forward, you should use ENV variables or create a
separate config file to allow the core config files to remain
automatically upgradeable.

* Shift Laravel dependencies

* Shift cleanup

* Upgrade to Laravel 7

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-09-06 19:38:10 +10:00
David Bomba 3514491300 Changing error structure, regression fixes for shop/client route 2020-08-12 08:59:28 +10:00
David Bomba c195f5b8a5 Add middleware to destroy document 2020-08-11 13:21:43 +10:00
David Bomba d7dbde3789 Implement PhantomJS 2020-08-04 21:00:19 +10:00
David Bomba fd97aff3f1 Fixes for routes"
git push
2020-07-28 23:24:01 +10:00
David Bomba fb34f2654a Allow additional headers 2020-07-28 22:55:40 +10:00
David Bomba caad3661d5 Refactor to user company_key instead of company_token 2020-07-28 21:58:15 +10:00
David Bomba d5b777206e Shop routes 2020-07-28 21:19:51 +10:00
David Bomba 04ed1d4fe3 formatting 2020-07-26 20:21:55 +10:00
David Bomba 3c38fd2cf6 Fixes for refresh route 2020-07-26 15:12:40 +10:00
David Bomba 34575554af Working on handling refresh route 2020-07-26 08:27:49 +10:00
David Bomba d36fdb4025 Fixes for refresh query 2020-07-25 09:02:32 +10:00
David Bomba 339795b555 make sure app url always has a trailing slash 2020-07-25 07:46:56 +10:00
David Bomba 643f709248 Fixes for refresh route 2020-07-24 19:39:43 +10:00
David Bomba ce3696257f Fixes for base repo invitations 2020-07-23 13:55:11 +10:00
David Bomba 91c40b0517 Update enabled_modules value 2020-07-21 21:26:58 +10:00
David Bomba 0d8d793a4c Fix for including ALL relations on the refresh route if updated_at is provided 2020-07-21 21:19:21 +10:00
David Bomba fec8e8b520 Fix bug where restoring a credit wouldn't work 2020-07-20 07:54:10 +10:00
David Bomba 41b85b3fb3 Ensure models are touched appropriately" 2020-07-16 21:01:39 +10:00
David Bomba 0cd3b6925e fixes for autobill invoice 2020-07-13 08:28:19 +10:00
David Bomba b4f669ad59 Update refresh route to filter all subqueries by updated_at 2020-07-10 09:28:09 +10:00
David Bomba f3572a5d11 Refactor for events 2020-07-08 22:02:16 +10:00
David Bomba 3561415c51 fixes for eventS 2020-06-30 10:06:30 +10:00
David Bomba 245980ce4b Send company with all events 2020-06-30 09:35:17 +10:00
David Bomba f05cf83853 Fixes for setup process 2020-06-28 20:32:18 +10:00
David Bomba 8eed07b8f5 Additional fields for entities 2020-06-28 08:24:08 +10:00
David Bomba 43618e40a0 Fixes for delete company 2020-06-25 07:44:25 +10:00
Benjamin Beganović 01094a2b5e Merge remote-tracking branch 'upstream/v2' into v2-2805-client-signup 2020-06-22 10:27:35 +02:00
David Bomba dbff1ab6ab remove x-api-version and replace with x-minimum-client-version 2020-06-22 07:30:25 +10:00
David Bomba eec55a38dd Debugging company deletion 2020-06-20 09:46:49 +10:00
Benjamin Beganović 6f34e083ae wip - registration client 2020-06-18 17:09:28 +02:00
Benjamin Beganović 22aa182250 Merge remote-tracking branch 'upstream/v2' into v2-2805-client-signup 2020-06-18 15:57:05 +02:00
David Bomba 2d2a5c0812 working on authorize.net token payments 2020-06-16 22:41:56 +10:00
David Bomba fc40159d36 Fixes for currency precision 2020-06-15 21:42:46 +10:00
David Bomba 1dd73e3a06 Add expose headers 2020-06-13 07:37:36 +10:00
Benjamin Beganović 90db66eb71 wip 2020-05-28 17:52:55 +02:00
Benjamin Beganović 551ede83e3 support first name and last name 2020-05-28 17:52:44 +02:00
Benjamin Beganović b5a36bad14 support domain registration 2020-05-28 17:48:03 +02:00