mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2025-03-11 04:58:21 +03:00
mergin
This commit is contained in:
parent
2ee0ecc25f
commit
17f2946dc9
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user