File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ DROP TABLE IF EXISTS `permissions`;
7575CREATE TABLE `permissions ` (
7676 ` id` int NOT NULL AUTO_INCREMENT,
7777 ` structure_uuid` char (36 ) COLLATE utf8mb4_unicode_ci DEFAULT NULL ,
78- ` type` enum(' admin' ,' interface ' ) COLLATE utf8mb4_unicode_ci NOT NULL ,
78+ ` type` enum(' admin' ,' structure ' ) COLLATE utf8mb4_unicode_ci NOT NULL ,
7979 ` email` varchar (255 ) COLLATE utf8mb4_unicode_ci NOT NULL ,
8080 PRIMARY KEY (` id` )
8181) ENGINE= InnoDB AUTO_INCREMENT= 57 DEFAULT CHARSET= utf8mb4 COLLATE= utf8mb4_unicode_ci;
Original file line number Diff line number Diff line change 11<?php
22
3+ ini_set ('session.gc_maxlifetime ' , 60 * 60 * 24 * 30 );
4+ session_set_cookie_params (60 * 60 * 24 * 30 );
35session_start ();
46
57error_reporting (E_ALL );
2628header ("Access-Control-Allow-Credentials: true " );
2729header ('Content-Type: application/json ' );
2830
29- setcookie ("PHPSESSID " , session_id (), [
30- 'expires ' => time () + 60 * 60 * 24 * 30 ,
31- 'path ' => '/ ' ,
32- 'domain ' => '. ' . $ _SERVER ['HTTP_HOST ' ],
33- 'secure ' => isset ($ _SERVER ['HTTP_X_FORWARDED_PROTO ' ]) && $ _SERVER ['HTTP_X_FORWARDED_PROTO ' ] === 'https ' ,
34- 'samesite ' => 'None '
35- ]);
36-
3731// Respond with a 200 OK status for preflight requests
3832if ($ _SERVER ['REQUEST_METHOD ' ] == 'OPTIONS ' ) {
3933 http_response_code (200 );
You can’t perform that action at this time.
0 commit comments