1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-12-22 17:33:48 +03:00
This commit is contained in:
Adolfo Gómez García 2023-03-25 17:49:16 +01:00
parent d6407aefa1
commit fddc3db8ab
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -31,7 +31,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;