mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2024-12-22 17:33:48 +03:00
typo fix
This commit is contained in:
parent
d6407aefa1
commit
fddc3db8ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user