-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* god help me * Update src/accounts/api/views.py Co-authored-by: Gilles <[email protected]> * fix save error * remove account identifier from url * Update views.py * fixes multiple arguments error * random token * cacwka * password resting works, woohoo! * Update views.py * token time lifespan * Update serializers.py * Update serializers.py * Update models.py * Update models.py * hour * view request changes * name changes * remove some logs * Update urls.py * Update urls.py * Update urls.py * precommit * Update urls.py * Update serializers.py * Update models.py * Update models.py * e * email * Update views.py * Update views.py * Update serializers.py * ee * Update views.py * link correct * get email * Update serializers.py * password request * Update views.py * Update views.py * fixes an error with subscriptables * Update src/accounts/api/serializers.py Co-authored-by: Gilles <[email protected]> * email working * Update serializers.py * Create 0001_squashed_0002_passwordresetrequest.py * chore: make a single migration for the new model --------- Co-authored-by: Gilles <[email protected]>
- Loading branch information
Showing
8 changed files
with
180 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 3.2.23 on 2024-01-23 23:29 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('accounts', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='PasswordResetRequestModel', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('token', models.TextField()), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Unitystation - Password Reset</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
color: #333333; | ||
background-color: #f4f4f4; | ||
padding: 20px; | ||
} | ||
.container { | ||
background-color: #ffffff; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1); | ||
} | ||
a.confirm-button { | ||
background-color: #4A5568; /* bg-gray-700 equivalent */ | ||
color: white; | ||
padding: 10px 20px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
border-radius: 5px; | ||
} | ||
.footer { | ||
font-size: small; | ||
color: #666666; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Password Reset Request</h1> | ||
<p><a href="{{ link }}" class="confirm-button">Reset password here</a></p> | ||
<p>If you did not initiate this request, please disregard this email, or contact us for support if you feel this is an error.</p> | ||
<p>Need help? Join our community on <a href="https://discord.com/invite/tFcTpBp">Discord</a> for support and interaction.</p> | ||
<p>Thank you for playing unitystation,</p> | ||
<p>The Unitystation Team</p> | ||
</div> | ||
<div class="footer"> | ||
<p>This is an automated email, please do not reply. If you need to contact us, email us at <a href="mailto:[email protected]">[email protected]</a>.</p> | ||
</div> | ||
</body> | ||
</html> |