mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Renamed csrfToken var to csrf_token for consistency
This commit is contained in:
parent
17bf3902cd
commit
9c44b8644f
31 changed files with 73 additions and 73 deletions
|
@ -392,8 +392,8 @@ $config['global_xss_filtering'] = TRUE;
|
|||
| 'csrf_expire' = The number in seconds the token should expire.
|
||||
*/
|
||||
$config['csrf_protection'] = TRUE;
|
||||
$config['csrf_token_name'] = 'csrfToken';
|
||||
$config['csrf_cookie_name'] = 'csrfCookie';
|
||||
$config['csrf_token_name'] = 'csrf_token';
|
||||
$config['csrf_cookie_name'] = 'csrf_cookie';
|
||||
$config['csrf_expire'] = 7200;
|
||||
$config['csrf_exclude_uris'] = ['api/v1/.*'];
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_providers';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
key: ''
|
||||
};
|
||||
|
||||
|
@ -212,7 +212,7 @@ window.BackendUsers = window.BackendUsers || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_validate_username';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
username: $input.val(),
|
||||
user_id: userId
|
||||
};
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_admin';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
admin: JSON.stringify(admin)
|
||||
};
|
||||
|
||||
|
@ -257,7 +257,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_admin';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
admin_id: id
|
||||
};
|
||||
|
||||
|
@ -384,7 +384,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_admins';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
key: key,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -280,7 +280,7 @@
|
|||
ProvidersHelper.prototype.save = function (provider) {
|
||||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_provider';
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
provider: JSON.stringify(provider)
|
||||
};
|
||||
|
||||
|
@ -302,7 +302,7 @@
|
|||
ProvidersHelper.prototype.delete = function (id) {
|
||||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_provider';
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
provider_id: id
|
||||
};
|
||||
|
||||
|
@ -499,7 +499,7 @@
|
|||
|
||||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_providers';
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
key: key,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -247,7 +247,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_secretary';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
secretary: JSON.stringify(secretary)
|
||||
};
|
||||
|
||||
|
@ -270,7 +270,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_secretary';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
secretary_id: id
|
||||
};
|
||||
|
||||
|
@ -407,7 +407,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_secretaries';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
key: key,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -83,7 +83,7 @@ window.BackendAdmins = window.BackendAdmins || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_validate_username';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
username: $input.val(),
|
||||
user_id: adminId
|
||||
};
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_admin';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
admin: JSON.stringify(admin)
|
||||
};
|
||||
|
||||
|
@ -257,7 +257,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_admin';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
admin_id: id
|
||||
};
|
||||
|
||||
|
@ -384,7 +384,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/admins/search';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
keyword: keyword,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -36,7 +36,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_appointment';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
appointment_data: JSON.stringify(appointment)
|
||||
};
|
||||
|
||||
|
@ -68,7 +68,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_unavailable';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
unavailable: JSON.stringify(unavailable)
|
||||
};
|
||||
|
||||
|
@ -104,7 +104,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_working_plan_exception';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
date: date,
|
||||
working_plan_exception: workingPlanException,
|
||||
provider_id: providerId
|
||||
|
@ -127,7 +127,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_delete_working_plan_exception';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
date: date,
|
||||
provider_id: providerId
|
||||
};
|
||||
|
|
|
@ -254,7 +254,7 @@ window.BackendCalendarAppointmentsModal = window.BackendCalendarAppointmentsModa
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_customers';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
key: key
|
||||
};
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_delete_appointment';
|
||||
|
||||
data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
appointment_id: lastFocusedEventData.data.id,
|
||||
delete_reason: $('#delete-reason').val()
|
||||
};
|
||||
|
@ -250,7 +250,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_delete_unavailable';
|
||||
|
||||
data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
unavailable_id: lastFocusedEventData.data.id
|
||||
};
|
||||
|
||||
|
@ -761,7 +761,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_appointment';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
appointment_data: JSON.stringify(appointment)
|
||||
};
|
||||
|
||||
|
@ -808,7 +808,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_unavailable';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
unavailable: JSON.stringify(unavailable)
|
||||
};
|
||||
|
||||
|
@ -924,7 +924,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_appointment';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
appointment_data: JSON.stringify(appointment)
|
||||
};
|
||||
|
||||
|
@ -971,7 +971,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
|
||||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_save_unavailable';
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
unavailable: JSON.stringify(unavailable)
|
||||
};
|
||||
|
||||
|
@ -1061,7 +1061,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/calendar/ajax_get_calendar_appointments';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
record_id: recordId,
|
||||
start_date: moment(startDate).format('YYYY-MM-DD'),
|
||||
end_date: moment(endDate).format('YYYY-MM-DD'),
|
||||
|
|
|
@ -61,7 +61,7 @@ window.BackendCalendarGoogleSync = window.BackendCalendarGoogleSync || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_get_google_calendars';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
provider_id: $('#select-filter-item').val()
|
||||
};
|
||||
|
||||
|
@ -130,7 +130,7 @@ window.BackendCalendarGoogleSync = window.BackendCalendarGoogleSync || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_select_google_calendar';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
provider_id: $('#select-filter-item').val(),
|
||||
calendar_id: $('#google-calendar').val()
|
||||
};
|
||||
|
@ -175,7 +175,7 @@ window.BackendCalendarGoogleSync = window.BackendCalendarGoogleSync || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_disable_provider_sync';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
provider_id: providerId
|
||||
};
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_working_plan_exception';
|
||||
|
||||
data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
working_plan_exception: lastFocusedEventData.start.format('YYYY-MM-DD'),
|
||||
provider_id: lastFocusedEventData.data.id
|
||||
};
|
||||
|
@ -287,7 +287,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_appointment';
|
||||
|
||||
data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
appointment_id: lastFocusedEventData.data.id,
|
||||
delete_reason: $('#delete-reason').val()
|
||||
};
|
||||
|
@ -318,7 +318,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_delete_unavailable';
|
||||
|
||||
data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
unavailable_id: lastFocusedEventData.data.id
|
||||
};
|
||||
|
||||
|
@ -1534,7 +1534,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
appointment_data: JSON.stringify(appointment)
|
||||
};
|
||||
|
||||
|
@ -1581,7 +1581,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_unavailable';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
unavailable: JSON.stringify(unavailable)
|
||||
};
|
||||
|
||||
|
@ -1666,7 +1666,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
appointment_data: JSON.stringify(appointment)
|
||||
};
|
||||
|
||||
|
@ -1714,7 +1714,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_unavailable';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
unavailable: JSON.stringify(unavailable)
|
||||
};
|
||||
|
||||
|
@ -1788,7 +1788,7 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_get_calendar_events';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
startDate: moment(startDate).format('YYYY-MM-DD'),
|
||||
endDate: moment(endDate).format('YYYY-MM-DD')
|
||||
};
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/service_categories/search';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
keyword: keyword,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
@ -234,7 +234,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/service_categories/' + (category.id ? 'update' : 'create');
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
service_category: JSON.stringify(category)
|
||||
};
|
||||
|
||||
|
@ -257,7 +257,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/service_categories/destroy';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
service_category_id: id
|
||||
};
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/customers/' + (customer.id ? 'update' : 'create');
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
customer: JSON.stringify(customer)
|
||||
};
|
||||
|
||||
|
@ -194,7 +194,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/customers/destroy';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
customer_id: id
|
||||
};
|
||||
|
||||
|
@ -378,7 +378,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/customers/search';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
keyword: keyword,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -119,7 +119,7 @@ window.BackendProviders = window.BackendProviders || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_validate_username';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
username: $input.val(),
|
||||
user_id: providerId
|
||||
};
|
||||
|
|
|
@ -281,7 +281,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/providers/' + (provider.id ? 'update' : 'create');
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
provider: JSON.stringify(provider)
|
||||
};
|
||||
|
||||
|
@ -303,7 +303,7 @@
|
|||
ProvidersHelper.prototype.delete = function (id) {
|
||||
var url = GlobalVariables.baseUrl + '/index.php/providers/destroy';
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
provider_id: id
|
||||
};
|
||||
|
||||
|
@ -502,7 +502,7 @@
|
|||
|
||||
var url = GlobalVariables.baseUrl + '/index.php/providers/search';
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
keyword: keyword,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -106,7 +106,7 @@ window.BackendSecretaries = window.BackendSecretaries || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_validate_username';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
username: $input.val(),
|
||||
user_id: userId
|
||||
};
|
||||
|
|
|
@ -247,7 +247,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/secretaries/' + (secretary.id ? 'update' : 'create');
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
secretary: JSON.stringify(secretary)
|
||||
};
|
||||
|
||||
|
@ -270,7 +270,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/secretaries/destroy';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
secretary_id: id
|
||||
};
|
||||
|
||||
|
@ -409,7 +409,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/secretaries/search';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
keyword: keyword,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -71,7 +71,7 @@ window.BackendServices = window.BackendServices || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/service_categories/search';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
key: ''
|
||||
};
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/services/' + (service.id ? 'update' : 'create');
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
service: JSON.stringify(service)
|
||||
};
|
||||
|
||||
|
@ -235,7 +235,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/services/destroy';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
service_id: id
|
||||
};
|
||||
|
||||
|
@ -339,7 +339,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/services/search';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
keyword: keyword,
|
||||
limit: this.filterLimit
|
||||
};
|
||||
|
|
|
@ -116,7 +116,7 @@ window.BackendSettingsBusinessLogic = window.BackendSettingsBusinessLogic || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_apply_global_working_plan';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
working_plan: JSON.stringify(exports.wp.get())
|
||||
};
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_settings';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
settings: JSON.stringify(settings),
|
||||
type: BackendSettingsBusinessLogic.SETTINGS_SYSTEM
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/settings/client_form/save';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
settings: JSON.stringify(settings),
|
||||
type: BackendSettingsClientForm.SETTINGS_SYSTEM
|
||||
};
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/account_settings/save';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
type: BackendSettingsCurrentUser.SETTINGS_USER,
|
||||
settings: JSON.stringify(settings)
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/settings/general/save';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
settings: JSON.stringify(settings),
|
||||
type: BackendSettingsGeneral.SETTINGS_SYSTEM
|
||||
};
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
var url = GlobalVariables.baseUrl + '/index.php/settings/legal_contents/save';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
settings: JSON.stringify(settings),
|
||||
type: BackendSettingsLegalContents.SETTINGS_SYSTEM
|
||||
};
|
||||
|
|
|
@ -57,7 +57,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/booking/ajax_get_available_hours';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
service_id: $('#select-service').val(),
|
||||
provider_id: $('#select-provider').val(),
|
||||
selected_date: selectedDate,
|
||||
|
@ -158,7 +158,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
var formData = JSON.parse($('input[name="post_data"]').val());
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
post_data: formData
|
||||
};
|
||||
|
||||
|
@ -245,7 +245,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
provider_id: providerId,
|
||||
service_id: serviceId,
|
||||
selected_date: encodeURIComponent(selectedDateString),
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
manage_mode: FrontendBook.manageMode,
|
||||
appointment_id: appointmentId
|
||||
};
|
||||
|
@ -312,7 +312,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/consents/ajax_save_consent';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
consent: consent
|
||||
};
|
||||
|
||||
|
@ -328,7 +328,7 @@ window.FrontendBookApi = window.FrontendBookApi || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/privacy/ajax_delete_personal_information';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
customer_token: customerToken
|
||||
};
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
const url = GlobalVariables.baseUrl + '/index.php/installation/perform';
|
||||
|
||||
const data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
admin: getAdminData(),
|
||||
company: getCompanyData()
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
const url = GlobalVariables.baseUrl + '/index.php/login/validate';
|
||||
|
||||
const data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
username: $('#username').val(),
|
||||
password: $('#password').val()
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
const url = GlobalVariables.baseUrl + '/index.php/recovery/perform';
|
||||
|
||||
const data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
username: $('#username').val(),
|
||||
email: $('#email').val()
|
||||
};
|
||||
|
|
|
@ -292,7 +292,7 @@ window.GeneralFunctions = window.GeneralFunctions || {};
|
|||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_change_language';
|
||||
|
||||
var data = {
|
||||
csrfToken: GlobalVariables.csrfToken,
|
||||
csrf_token: GlobalVariables.csrfToken,
|
||||
language: $(this).attr('data-language')
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue