feat: implement password reset functionality
- Added PasswordResetPage component for user password reset. - Integrated password reset link in LoginPage with a router link. - Created API endpoints for requesting and confirming password resets. - Added email templates for password reset notifications. - Updated database schema to support password reset tokens. - Enhanced ProfilePage and EditProfileDialog to include personal data fields. - Introduced layout store to manage body dimensions for responsive design. - Added validation for personal data fields in profile management.
This commit is contained in:
12
registration/mails/password_reset_html.tmpl
Normal file
12
registration/mails/password_reset_html.tmpl
Normal file
@@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<body>
|
||||
<p>Hi {{ .Name }},</p>
|
||||
<p>We received a request to reset the password for {{ .Email }}.</p>
|
||||
<p>
|
||||
Set a new password by opening this link:<br />
|
||||
<a href="{{ .PasswordResetURL }}">{{ .PasswordResetURL }}</a>
|
||||
</p>
|
||||
<p>If you did not request this, you can ignore this email.</p>
|
||||
</body>
|
||||
</html>
|
||||
1
registration/mails/password_reset_subject.tmpl
Normal file
1
registration/mails/password_reset_subject.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
Reset your password
|
||||
8
registration/mails/password_reset_text.tmpl
Normal file
8
registration/mails/password_reset_text.tmpl
Normal file
@@ -0,0 +1,8 @@
|
||||
Hi {{ .Name }},
|
||||
|
||||
We received a request to reset the password for {{ .Email }}.
|
||||
|
||||
Set a new password by opening this link:
|
||||
{{ .PasswordResetURL }}
|
||||
|
||||
If you did not request this, you can ignore this email.
|
||||
Reference in New Issue
Block a user