Commit Graph

154 Commits

Author SHA1 Message Date
o-psi 98f731b4d4 Remove any "Send Single Email" declarations except in mail queue.
All emails go through the mail queue, using the addToMailQueue() function.
2023-12-19 23:02:05 +00:00
o-psi 8b4beacf0e Update MailQueue to use function 2023-12-19 22:36:51 +00:00
johnnyq dcd5103819 Hide Financial Reports, Financial Dashboard, Client Portal Invoices/Quotes of Accounting module is disabled, also included the settings into the client portal, so all settings vars are easily accessable within the portal 2023-11-20 17:20:49 -05:00
Marcus Hill 51ec92c72e AAD SSO - Wording
Slight change to the error wording when a user doesn't exist in ITFlow as a contact / has the wrong auth method set (blank/local rather than Azure)
2023-11-07 21:18:46 +00:00
Marcus Hill 218cdcdc4c Allow contacts to upload attachments when adding ticket replies in portal
- Adds the ability for contacts to add file attachments when posting a ticket reply
- Enhancements to checkFileUpload(): Adjust file reference name generation & bad extension handling
2023-10-21 15:24:15 +01:00
johnnyq ba9442e6c3 Added Confirmation to Close Ticket in Client Portal - Seperated cofirmation modal to a seperate JS file which is now included in the Client Portal 2023-10-20 19:10:25 -04:00
o-psi 53c11edc8c Update constructs to not have parenthesis. 2023-10-20 15:25:52 -05:00
Marcus Hill 263382073d Contact small edits
- Adjust behaviour when selecting "Send user e-mail with login details?" (show reset link OR prompt user to change password if tech set one)
- Email wording change (remove ITFlow reference and replace with MSP name)
- Show contact PIN in the portal
- Bump password min length to 8 (and enforce on tech side)
- Bugfix undefined send_email value
2023-10-07 20:42:48 +01:00
johnnyq 477e092b27 Updated client portal ticket details and document detail to use prettyContent js function 2023-09-26 14:28:36 -04:00
Marcus Hill dd43d8fd26 Adjust Client Portal AAD SSO Button to be HTML rather than Javascript due to CSP blocking inline JS. 2023-08-31 20:20:49 +01:00
Marcus Hill b7108436fd Add notify by email function when a new ticket is created 2023-08-27 12:24:15 +01:00
johnnyq 1ed4eeaafc Remove extra bottom margin below error msg on client login 2023-08-20 15:43:39 -04:00
johnnyq 880e1be08c Did the same for client portal login as well center forgot password 2023-08-20 15:30:36 -04:00
johnnyq 0d497163fe Feature: Login Message now complete can be set in settings > security 2023-08-18 15:35:31 -04:00
johnnyq c916e249bd Fix Viewing Invoices and Quotes from Client Portal in Edge Browser reversed the slashes from backslashes to forward slashes - see https://forum.itflow.org/d/198-customers-unable-to-view-invoices-client-portal-using-edge 2023-07-07 16:45:48 -04:00
johnnyq a5100ea187 Update the remaining logic to take advantage of the moved contact_primary and contact_location fields 2023-07-03 20:16:39 -04:00
Marcus Hill 7f5e63e518 Fix undefined error for company name 2023-06-17 16:16:10 +01:00
Marcus Hill a966bf0282 Adjust content security policy 2023-06-17 16:13:02 +01:00
johnnyq 25f85486d4 Client Portal can now be enabled or disabled in settings > Modules > Enable Client Portal, it is enabled by default 2023-06-14 19:07:39 -04:00
johnnyq ccf0d3ab77 Replace all instances of htmlentities() with the new function nullable_htmlentities() thanks @bhopkins0 2023-05-11 18:23:36 -04:00
johnnyq 8b89ba31db Fix Raise ticket under client portal another regression when we moved to TinyMCE. Expanded Document view to container width 2023-05-10 11:50:55 -04:00
johnnyq cf0205ba21 Tidy Portal Header 2023-05-09 16:37:32 -04:00
johnnyq 09ff8b710b Enable browser spell checker for TinyMCE 2023-05-09 00:31:09 -04:00
johnnyq eb3decb4da Enabled TinyMCE for mobile users as well 2023-05-08 21:25:06 -04:00
johnnyq 01a37cb1e1 Replace Summernote WYSIWYG with TinyMCE 2023-05-08 18:44:00 -04:00
Marcus Hill db6b88edd3 Codesmell 2023-05-08 10:54:40 +01:00
Marcus Hill 0e062081cb Client Portal
- Allow primary + accounting/billing contacts to see quotes
- Allow primary + technical contacts to see docs
2023-05-08 10:50:53 +01:00
johnnyq 0f758c5901 Finished DB Structure for the coming new feature custom fields 2023-05-07 19:45:55 -04:00
Marcus Hill bf45c58ed1 Remove reference to non-existent company_id field in contacts table 2023-05-01 14:01:23 +01:00
Marcus Hill 0340b080ad CSP - Client Portal Test
Add initial content security policy trial/test to some client portal pages
2023-04-29 19:39:42 +01:00
johnnyq a5d9bd7abe Convert CSS to nl2br() functions where nessesessaery to interept new lines into html code, Tidy Code remove depreciated <center> Tags 2023-04-05 15:20:07 -04:00
johnnyq 3f028e8560 Fix Broken API due to incorrect named function https://forum.itflow.org/d/119-api-broken 2023-03-14 18:59:43 -04:00
johnnyq 37e21e963b Add summernote WYSIWYG function to Raising a ticket as we sanitize outout with HTMLPurify 2023-03-13 20:06:36 -04:00
johnnyq 748041cd5d Fix issue relating to forum post https://forum.itflow.org/d/118-users-cant-raise-tickets due to mis-spelled function 2023-03-13 19:51:52 -04:00
johnnyq 58d058e62c Added Summernote WYSIWYG to client portal 2023-03-12 11:02:09 -04:00
johnnyq d37c3f0251 Rework htmlpurify function in client portal to properly santizie the output instead of the input Fix broken client avatar in client portal 2023-03-12 10:48:45 -04:00
johnnyq 48fe49cf77 BREAKING CHANGES - MAKE FULL BACKUP BEFORE PROCEEDING - Requires Manual Intervention on files see Forum Post Make sure you run the Database update directly after update. This Removes Multi-Company Functionality. Fixes issues with Reponsive tables and bunch of other UI and small Fixes 2023-03-11 16:16:46 -05:00
johnnyq a711bed38c Add sme more htmlemtities for consistency 2023-03-05 20:06:42 -05:00
johnnyq f7552cd25a Finished up santizeInput Conv and UI updates 2023-02-23 16:09:37 -05:00
Marcus Hill c219324bb8 General cleanup/formatting 2023-02-09 11:42:57 +00:00
Marcus Hill b36719eb99 General cleanup/tidying 2023-02-09 11:32:40 +00:00
Marcus Hill e8c9e63a7b Add X-Frame-Options to login pages & client portal 2023-02-05 18:43:50 +00:00
Marcus Hill 7f02464b92 Portal-related updates
- Bug fix contact password setting
- Add invoice guest view link to invoices portal page
- Billing contacts now have access to invoices on the portal
- Technical contacts now have access to all tickets
- General housekeeping/tidying
2023-02-04 15:28:39 +00:00
Marcus Hill 63923290cc Add new ticket button on portal home page 2023-02-01 23:13:53 +00:00
Marcus Hill fdcabbcb14 Add very basic invoices summary to client portal (visible only to the primary contact) 2023-02-01 23:11:35 +00:00
Marcus Hill 3649b3019a Bugfix: Non-primary contacts were not able to raise tickets from the portal due to the navbar item being hidden 2023-02-01 23:05:47 +00:00
Johnny 4fd6d752c6
Merge pull request #580 from wrongecho/function-standardise
Convert custom function names to camelCase
2023-01-26 18:20:33 -05:00
Marcus Hill 531bd25f27 Convert custom function names to camelCase 2023-01-26 22:03:31 +00:00
Marcus Hill 10362f86ef Convert custom function names to camelCase 2023-01-26 21:58:27 +00:00
Marcus Hill 23e3a2e8fc - Create custom function (randomString()) for generating cryptographically (and URL) safe strings.
- Replace usages of keygen and bin2hex(random_bytes()) with this function.
2023-01-26 21:35:06 +00:00
Marcus Hill d612a3ba26 Convert to require_once 2023-01-25 23:22:12 +00:00
Marcus Hill cffde0fbbd Tidy 2023-01-25 23:07:37 +00:00
Marcus Hill bfe5e533bd Merge branch 'master' into more-tidy 2023-01-25 23:06:34 +00:00
Marcus Hill 0f3b6b5d23 Add alt-text to logo 2023-01-25 23:04:45 +00:00
Marcus Hill 67e1fb7021 Show the 'default' company logo (if configured) on the client login page instead of the ITFlow/company name text 2023-01-25 23:04:45 +00:00
Marcus Hill cb11ebc857 General tidy/spacing cleanups 2023-01-25 23:04:41 +00:00
Marcus Hill 8d4a76e3f8 Add HTML lang element to match main header.php 2023-01-25 23:04:41 +00:00
Marcus Hill efecab179b General cleanups, add HTML lang element to match header.php 2023-01-25 23:04:41 +00:00
Marcus Hill b98439d74a Remove unused variable assignment. was calling get_os with no parameters, so nothing was ever returned anyway. Get_os instead can now be given the user agent to determine the OS 2023-01-25 22:59:28 +00:00
Marcus Hill ad2390d0ea General tidy/spacing cleanups 2023-01-23 21:09:44 +00:00
Marcus Hill 49da4d7fd4 Add HTML lang element to match main header.php 2023-01-23 20:56:08 +00:00
Marcus Hill 95b9e2fe23 General cleanups, add HTML lang element to match header.php 2023-01-23 20:55:25 +00:00
Marcus Hill d73b3cb960 Correct typos 2023-01-21 17:22:27 +00:00
Marcus Hill 2c3ebb3bbb Tidy codestyle - spaces between parenthesis and curly braces 2023-01-21 17:09:39 +00:00
johnnyq 2f595bd7c8 Added some breadcrumbs to new ticket and ticket details in user portal 2023-01-16 20:48:25 -05:00
johnnyq 7ba434963e Cleaned up and fixed Client Portal class Syntax, removed unnessesary html markup etc 2023-01-16 20:09:34 -05:00
Marcus Hill 66259c295b Escape potential HTML data from ticket fields 2023-01-02 15:54:37 +00:00
Marcus Hill f7bfeedf54 Escape potential HTML data from ticket reply contact/user fields 2023-01-02 15:50:35 +00:00
Marcus Hill f2efa79c57 Escape potential HTML data from ticket fields 2023-01-02 15:48:47 +00:00
Marcus Hill 4b10a2ac68 Improve security of password reset token for client portal 2023-01-02 15:38:40 +00:00
Marcus Hill 3ea7406c2e Better name azure client id variable as to not be confusing with itflow client ids 2023-01-02 15:27:29 +00:00
Marcus Hill e32439cc4c Escape potential HTML from ticket fields 2023-01-02 15:24:30 +00:00
Marcus Hill 67b306795b Sanitize portal session vars against sql/html code 2023-01-02 15:17:58 +00:00
Marcus Hill dd00f48e5b Portal code style tidy 2023-01-01 16:05:48 +00:00
Marcus Hill 6746edda1a Misc tidying code spacing & formatting in accordance with SonarCloud/PSR 2023-01-01 15:41:21 +00:00
Marcus Hill 1ea081a175 Move email sending to a function for better error handling and code-deduplication 2022-12-18 14:24:47 +00:00
Marcus Hill 0706af1608 Make separate avatar photo URLs for client/agent replies. Fixes #501 2022-12-11 10:50:16 +00:00
Marcus Hill 6529ff8bbf Allow portal contacts to reset their passwords via email 2022-10-01 21:32:19 +01:00
Marcus Hill 851ca7fae5 Always set a random password for new portal users. This isn't an issue at the moment as we don't allow logins with empty passwords but better to be safe. 2022-10-01 19:32:40 +01:00
Marcus Hill 5cf36fd719 Show the company brand/name on the client portal, rather than ITFlow 2022-09-30 21:07:00 +01:00
johnnyq 6f6d737e64 Added meta no index to all headers so pages dont get indexed by Google this only affects people that dont have a robots.txt at HTRoot hence people that are running itflow in a subdir like example.com/itflow 2022-09-21 12:38:22 -04:00
Marcus Hill 39e95347f0 Add ability for locally authenticated client contacts to change their portal password 2022-09-10 22:46:01 +01:00
Marcus Hill 5f5e023afe Fix contact title & improve logging on client portal
Hyperlink ticket on client overview page
2022-04-16 12:51:15 +01:00
Marcus Hill 441591d39e Allow client to close ticket from portal 2022-03-29 21:16:02 +01:00
Johnny bb24cc7112
Merge pull request #421 from wrongecho/misc2
Client portal + permission bug fix
2022-03-28 19:15:01 -04:00
Marcus Hill 390e52f7bd Consolidate if statement 2022-03-28 22:56:21 +01:00
Marcus Hill b957d40bdb Move contact ticket access check to function. Add ability for client to close ticket 2022-03-28 22:50:23 +01:00
Johnny 512a2d03eb
Merge pull request #419 from wrongecho/client-portal
Tidy client portal login page
2022-03-28 17:07:00 -04:00
johnnyq 1b0d3474a7 Fix Client portal index.php, removed unused vars and functions, fix code indentation and syntax 2022-03-28 17:03:38 -04:00
Marcus Hill a3edfb70bc Tidy client portal 2022-03-28 21:37:27 +01:00
Johnny f7252f24e8
Merge pull request #414 from aftechro/patch-7
Updated index.php
2022-03-28 16:27:21 -04:00
Johnny f6930f820e
Merge pull request #416 from aftechro/patch-9
Updated ticket.php
2022-03-28 16:27:10 -04:00
johnnyq c4fb8cf4d2 Added Red text to login message to show error has occurred to client portal login 2022-03-28 10:42:29 -04:00
johnnyq 42f47e948d Cleanup Client Login page and correct indentation of code structure 2022-03-28 10:30:48 -04:00
AFTECH.RO 8555b032fe
Updated ticket.php
small UI changes, as well added close ticket to contact
@wrongecho or @johnnyq please have a look at the close button functionality, so the contacts can close the ticket too
2022-03-27 23:32:11 +01:00
AFTECH.RO c784774162
Updated login.php
Changed login page - same UI as admin logo
2022-03-27 23:29:53 +01:00
AFTECH.RO 8f3cb64158
Updated index.php
small changes to UI
2022-03-27 23:28:15 +01:00
Marcus Hill 4650947241 Fix client portal priority 2022-03-27 19:00:43 +01:00
Marcus Hill 9378b3eec4 Remove bad reference to session user id for portal post new ticket logging 2022-03-21 21:25:03 +00:00
Marcus Hill c974251e93 Fix new ticket link 2022-03-21 21:17:50 +00:00