working on messagesystem, password reset form

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-07-08 00:06:35 +02:00
parent 9d83008a62
commit 3e91565fb6
15 changed files with 337 additions and 67 deletions

View File

@@ -0,0 +1,39 @@
<script>
import { t } from '../../translations.svelte.js';
import { useTinyRouter } from 'svelte-tiny-router';
let mail = "";
let caption = t('user.send_mail');
const router = useTinyRouter();
async function submit(ev){
ev.preventDefault();
caption = t('user.sent_email');
}
</script>
<style>
label{display:block}
fieldset{
display: block;
position: relative;
left: 50%;
width: 200px;
margin-left: -100px;
margin-bottom: 30px;
text-align: center;
}
</style>
<form onsubmit={submit}>
<fieldset>
<legend>{t('user.reset_pw')}</legend>
<label>
<input type="email" bind:value={mail}/>
{t('user.enter_email')}
</label>
<button type="submit">{caption}</button>
</fieldset>
</form>