Skip to content

Commit 51d9a55

Browse files
committed
Add csrf to ldap login
1 parent 84312aa commit 51d9a55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ class API {
7070
const response = await this.fetch(`${this.serverUrl}/auth/ldap`, {
7171
method: 'post',
7272
body: encodeFormComponent({username, password}),
73-
headers: {
73+
headers: await this.wrapHeaders({
7474
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
75-
}
75+
})
7676
})
7777
return response.status === 200
7878
}

0 commit comments

Comments
 (0)