muni-town / weird

Weird web pages
https://weird.one
Other
51 stars 11 forks source link

add proof-of-work challenge for feedback form. #152

Closed github-actions[bot] closed 2 months ago

github-actions[bot] commented 2 months ago

let challenge = await get_pow_challenge(); console.debug('Computing proof of work', challenge); powInput.value = (await pow_work_wasm(challenge)) || ''; console.debug('Completed proof of work', powInput.value); if (powInput.value == '') { processing = false; throw 'Error computing proof of work, you may need a browser update.';


https://github.com/muni-town/weird/blob/61ed93beed04ecaa10ec1687920424400c6ad19d/src/routes/(app)/feedback/+page.svelte#L20-L27


This issue was generated by todo-issue based on a TODO comment in 61ed93beed04ecaa10ec1687920424400c6ad19d.