fix: add Password header to adminVerifyPass

This commit is contained in:
Luke Bennett 2021-06-14 01:59:11 +01:00
parent 39dad3a037
commit 58ce59c9ee
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A

View file

@ -96,7 +96,7 @@ export class CCashClient implements ICCashClient {
adminVerifyPass(pass: string): Promise<boolean> { adminVerifyPass(pass: string): Promise<boolean> {
return this.http return this.http
.get('/admin/verify') .get('/admin/verify', { headers: { Password: pass } })
.then( .then(
(response) => this.handleError(response) || response.data.value || false (response) => this.handleError(response) || response.data.value || false
); );