Skip to content

Commit

Permalink
don't clear note cache during pass reset
Browse files Browse the repository at this point in the history
Signed-off-by: Philemon Ukane <[email protected]>
  • Loading branch information
ukane-philemon committed Oct 13, 2023
1 parent 767d3f2 commit 952fcb1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client/webserver/site/src/js/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1878,11 +1878,6 @@ export class AppPassResetForm {
return
}

// Clear the notification cache. Useful for development purposes, since
// the Application will only clear them on login, which would leave old
// browser-cached notifications in place after registering even if the
// client db is wiped.
app().setNotes([])
const seed = page.seedInput.value?.replace(/\s+/g, '') // strip whitespace
if (!seed || seed.length !== 128 /* 64 bytes hex encoded value, check and fail early */) {
Doc.showFormError(page.appPWResetErrMsg, intl.prep(intl.ID_INVALID_SEED))
Expand Down

0 comments on commit 952fcb1

Please sign in to comment.