aussehen rahmen
This commit is contained in:
@ -43,18 +43,18 @@ function sendMail($email, $pwtoken)
|
|||||||
$mail = new CNetcupMailer();
|
$mail = new CNetcupMailer();
|
||||||
$mail->CharSet = "UTF-8";
|
$mail->CharSet = "UTF-8";
|
||||||
|
|
||||||
$mail->setFrom('dog@hope-fly.de', 'Administrator');
|
$mail->setFrom('dog@hope-fly.de', 'Administrator hope-fly.de/dog');
|
||||||
$mail->addAddress($email); //Add a recipient
|
$mail->addAddress($email); //Add a recipient
|
||||||
$mail->addReplyTo('No Reply');
|
$mail->addReplyTo('No Reply');
|
||||||
$mail->isHTML(true);
|
$mail->isHTML(true);
|
||||||
//Attachments
|
//Attachments
|
||||||
|
|
||||||
//Content
|
//Content
|
||||||
$mail->Subject = 'Passwort zurücksetzen!';
|
$mail->Subject = 'Ihr neues Passwort!';
|
||||||
$mail->Body =
|
$mail->Body =
|
||||||
"<h3>Neues Passwort setzen</h3>
|
"<h3>Neues Passwort setzen</h3>
|
||||||
<p>Gültig bis $expiresStr</p>
|
<p>Link gültig 30 Minuten bis $expiresStr</p>
|
||||||
<a href='https://hope-fly.de/dog/pwreset/$pwtoken'>Setzen</a>";
|
<a href='https://hope-fly.de/dog/pwreset/$pwtoken'>Passwort setzen</a>";
|
||||||
|
|
||||||
return $mail->send();
|
return $mail->send();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,6 +53,10 @@ div.flexCenter
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 60%;
|
width: 60%;
|
||||||
|
|
||||||
|
padding: 10px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.formForm
|
.formForm
|
||||||
@ -92,6 +96,7 @@ div.flexCenter
|
|||||||
{
|
{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.textArea
|
.textArea
|
||||||
|
|||||||
@ -1,8 +1,30 @@
|
|||||||
.InputForm
|
.InputForm
|
||||||
form
|
form
|
||||||
{
|
{
|
||||||
width: 65%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.InputForm
|
||||||
|
.frame
|
||||||
|
{
|
||||||
|
padding: 10px;
|
||||||
|
margin: 10px;
|
||||||
|
border: 2px;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-style: solid;
|
||||||
|
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.InputForm
|
||||||
|
.frameCenter
|
||||||
|
{
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|||||||
@ -70,13 +70,14 @@ const Login = () =>
|
|||||||
<div className='InputForm'>
|
<div className='InputForm'>
|
||||||
<Toaster toastOptions={{ position: "top-center" }} />
|
<Toaster toastOptions={{ position: "top-center" }} />
|
||||||
<h2>Login</h2>
|
<h2>Login</h2>
|
||||||
|
<div className='frameCenter'>
|
||||||
|
<div className='frame'>
|
||||||
<form onSubmit={submitForm}>
|
<form onSubmit={submitForm}>
|
||||||
<div>
|
<div className='neben'>
|
||||||
<label htmlFor="email">Email:</label>
|
<label htmlFor="email">Email:</label>
|
||||||
<input type="email" name="email" onChange={onChangeInput} placeholder="Your email" id="email" value={formData.email} required />
|
<input type="email" name="email" onChange={onChangeInput} placeholder="Your email" id="email" value={formData.email} required />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className='neben'>
|
||||||
<label htmlFor="password">Password:</label>
|
<label htmlFor="password">Password:</label>
|
||||||
<input type="password" name="password" onChange={onChangeInput} placeholder="New password" id="password" value={formData.password} required />
|
<input type="password" name="password" onChange={onChangeInput} placeholder="New password" id="password" value={formData.password} required />
|
||||||
</div>
|
</div>
|
||||||
@ -85,6 +86,8 @@ const Login = () =>
|
|||||||
<div className="bottom-link"><Link to="/wantnewpw">Passwort vergessen</Link></div>
|
<div className="bottom-link"><Link to="/wantnewpw">Passwort vergessen</Link></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
export default Login;
|
export default Login;
|
||||||
@ -69,7 +69,7 @@ export default function PasswordReset()
|
|||||||
if(dataRes.success)
|
if(dataRes.success)
|
||||||
{
|
{
|
||||||
toast.success('Erfolgreich Passwort geändert!');
|
toast.success('Erfolgreich Passwort geändert!');
|
||||||
e.currentTarget.reset();
|
e.currentTarget?.reset();
|
||||||
}
|
}
|
||||||
else if(!dataRes.success && dataRes.message)
|
else if(!dataRes.success && dataRes.message)
|
||||||
{
|
{
|
||||||
@ -81,6 +81,8 @@ export default function PasswordReset()
|
|||||||
<div className='InputForm'>
|
<div className='InputForm'>
|
||||||
<Toaster toastOptions={{ position: "top-center" }} />
|
<Toaster toastOptions={{ position: "top-center" }} />
|
||||||
<h2>Passwort zurücksetzten!</h2>
|
<h2>Passwort zurücksetzten!</h2>
|
||||||
|
<div className='frameCenter'>
|
||||||
|
<div className='frame'>
|
||||||
<form onSubmit={submitForm}>
|
<form onSubmit={submitForm}>
|
||||||
<div className='neben'>
|
<div className='neben'>
|
||||||
<label htmlFor="password1">Passwort: </label>
|
<label htmlFor="password1">Passwort: </label>
|
||||||
@ -94,5 +96,7 @@ export default function PasswordReset()
|
|||||||
<div className="bottom-link"><Link to="/login">Login</Link></div>
|
<div className="bottom-link"><Link to="/login">Login</Link></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,6 +145,8 @@ function Profil()
|
|||||||
<div className='InputForm'>
|
<div className='InputForm'>
|
||||||
<Toaster toastOptions={{ position: "top-center" }} />
|
<Toaster toastOptions={{ position: "top-center" }} />
|
||||||
<h2>Profil</h2>
|
<h2>Profil</h2>
|
||||||
|
<div className='frameCenter'>
|
||||||
|
<div className='frame'>
|
||||||
<div className='neben'>
|
<div className='neben'>
|
||||||
<div className='margin'>
|
<div className='margin'>
|
||||||
{data.data && <Img pth={data.data.picture} className=''/>}
|
{data.data && <Img pth={data.data.picture} className=''/>}
|
||||||
@ -171,6 +173,8 @@ function Profil()
|
|||||||
</div>
|
</div>
|
||||||
<button type="submit">Update</button>
|
<button type="submit">Update</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<Link to={"/qr"}>QR-Code drucken</Link>
|
<Link to={"/qr"}>QR-Code drucken</Link>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -51,6 +51,8 @@ const Register = () =>
|
|||||||
<div className='InputForm'>
|
<div className='InputForm'>
|
||||||
<Toaster toastOptions={{ position: "top-center" }} />
|
<Toaster toastOptions={{ position: "top-center" }} />
|
||||||
<h2>Register</h2>
|
<h2>Register</h2>
|
||||||
|
<div className='frameCenter'>
|
||||||
|
<div className='frame'>
|
||||||
<form onSubmit={submitForm}>
|
<form onSubmit={submitForm}>
|
||||||
<div className='neben'>
|
<div className='neben'>
|
||||||
<label htmlFor="email">Email: </label>
|
<label htmlFor="email">Email: </label>
|
||||||
@ -68,6 +70,8 @@ const Register = () =>
|
|||||||
<div className="bottom-link"><Link to="/login">Login</Link></div>
|
<div className="bottom-link"><Link to="/login">Login</Link></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
export default Register;
|
export default Register;
|
||||||
@ -40,6 +40,8 @@ function WantNewPw()
|
|||||||
<div className='InputForm'>
|
<div className='InputForm'>
|
||||||
<Toaster toastOptions={{ position: "top-center" }} />
|
<Toaster toastOptions={{ position: "top-center" }} />
|
||||||
<h2>Neues Passwort setzen!</h2>
|
<h2>Neues Passwort setzen!</h2>
|
||||||
|
<div className='frameCenter'>
|
||||||
|
<div className='frame'>
|
||||||
<form onSubmit={submitForm}>
|
<form onSubmit={submitForm}>
|
||||||
<div className='neben'>
|
<div className='neben'>
|
||||||
<label htmlFor="email">Email: </label>
|
<label htmlFor="email">Email: </label>
|
||||||
@ -50,6 +52,8 @@ function WantNewPw()
|
|||||||
<button type="submit" >Passwort anfordern</button>
|
<button type="submit" >Passwort anfordern</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user