1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-10-26 08:55:23 +03:00
This commit is contained in:
Adolfo Gómez García 2023-03-25 17:49:40 +01:00
parent 2ee0ecc25f
commit 17f2946dc9
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@
"license": "BSD-3-Clause",
"scripts": {
"ng": "ng",
"start": "NODE_OPTIONS=--openssl-legacy-provider ng serve --host 0.0.0.0 --port 9000 --proxy-config proxy.conf.json",
"build": "NODE_OPTIONS=--openssl-legacy-provider ng build --configuration production --output-hashing=none --aot --delete-output-path --build-optimizer --deploy-url /uds/res/modern/ --base-href /uds/page",
"start": "ng serve --host 0.0.0.0 --port 9000 --proxy-config proxy.conf.json",
"build": "ng build --configuration production --output-hashing=none --aot --delete-output-path --build-optimizer --deploy-url /uds/res/modern/ --base-href /uds/page",
"postbuild": "python3 toUDS.py",
"test": "ng test",
"lint": "ng lint",
@ -68,4 +68,4 @@
"ts-node": "~8.4.1",
"typescript": "~4.8.4"
}
}
}

View File

@ -29,7 +29,7 @@ export class LoginComponent implements OnInit {
input.name = this.api.csrfField;
// Extract csrftoken from cookie
const cookie = document.cookie.split(';').find((c) => c.trim().startsWith('csrftoken='));
const cookie = document.cookie.split(';').find((c) => c.trim().startsWith('csrftoken=')) || '=';
input.value = cookie.split('=')[1];
this.auth = document.getElementById('authenticator') as HTMLInputElement;