Skip to content

Commit

Permalink
use password cache
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 committed Apr 13, 2024
1 parent 9a5b7c3 commit fdefdec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/webserver/site/src/js/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1224,15 +1224,15 @@ export class FeeAssetSelectionForm {
}

async submitPrepaidBond () {
const { page, host } = this
const { page, host, pwCache } = this
Doc.hide(page.prepaidBondErr)
const code = page.prepaidBondCode.value
if (!code) {
page.prepaidBondErr.textContent = intl.prep(intl.ID_INVALID_VALUE)
Doc.show(page.prepaidBondErr)
return
}
const appPW = page.prepaidBondPW.value || ''
const appPW = page.prepaidBondPW.value || (pwCache ? pwCache.pw : '')
const res = await postJSON('/api/redeemprepaidbond', { appPW, host, code, cert: this.certFile })
if (!app().checkResponse(res)) {
page.prepaidBondErr.textContent = res.msg
Expand Down

0 comments on commit fdefdec

Please sign in to comment.