diff --git a/bloggy/forms/signup_form.py b/bloggy/forms/signup_form.py
index b5f5689..dc8107e 100644
--- a/bloggy/forms/signup_form.py
+++ b/bloggy/forms/signup_form.py
@@ -12,14 +12,15 @@ def save(self, commit=True):
user = super().save(commit=False) # Call the parent class's save method
# Generate the username based on the user's name (you can use your custom function here)
user.username = self.generate_unique_username(self.cleaned_data['name'])
- user.is_active = True
+ user.is_active = False
user.is_staff = False
if commit:
user.save()
return user
- def generate_unique_username(self, name):
+ @staticmethod
+ def generate_unique_username(name):
# Convert the user's name to a lowercase username with underscores
base_username = name.lower().replace(' ', '_')
diff --git a/bloggy/templates/email/acc_active_email.html b/bloggy/templates/email/acc_active_email.html
index c0da6be..ef9846d 100644
--- a/bloggy/templates/email/acc_active_email.html
+++ b/bloggy/templates/email/acc_active_email.html
@@ -1,475 +1,482 @@
-
- Welcome to StackTips
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Hey, {{ user_name }} Welcome to StackTips!
-
-
- |
-
-
-
-
-
- |
-
-
-
-
-
+
+
+
+
+
+
+
+ Hey, {{ user_name }}
+
+
+
+ Welcome to StackTips!
+
+
+ |
+
+
+
+
+
+ |
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Thank you for signing up and we are really excited to welcome you!
- Explore the unlimited learning opportunities!
-
- |
-
-
-
-
- Click on the link below to complete your registration and get started!
-
- |
-
-
-
-
- |
-
-
-
-
- Explore the unlimited learning opportunities!
-
- |
-
-
-
-
- Happy learning!
-
- |
-
-
-
-
- Team StackTips
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
-
-
-
-
- |
-
-
-
-
-
+
+
+
+
+
+
+ Thank you for signing up and we are really excited to welcome you!
+ Explore the unlimited learning opportunities!
+
+ |
+
+
+
+
+ Click on the link below to complete your registration and get started!
+
+ |
+
+
+
+
+ |
+
+
+
+
+ Explore the unlimited learning opportunities!
+
+ |
+
+
+
+
+ Happy learning!
+
+ |
+
+
+
+
+ Team StackTips
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
- |
-
-
-
-
-
+ |
+
+
+
+
+
+ |
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
-
- |
-
-
-
-
-
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+ |
-
-
+
+
+
-
+
+
+
+
+
+