fix: Gite credentials email: fix subject and let user know instance is
ci/woodpecker/push/woodpecker Pipeline was successful Details

being provisioned

fixes: https://gitea.hostea.org/Hostea/dashboard/issues/44
tos-reminder
Aravinth Manivannan 2022-07-08 22:38:32 +05:30
parent b12cc044da
commit a95158f3df
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
3 changed files with 9 additions and 6 deletions

View File

@ -114,7 +114,7 @@ class BillingTest(TestCase):
all(
[
instance_notificaiton.to[0] == self.email,
"Congratulations on your new Gitea instance!"
"Congratulations on your new Hostea instance!"
in instance_notificaiton.body,
]
),

View File

@ -1,11 +1,14 @@
Hello {{ username }},
Congratulations on your new Gitea instance!
Congratulations on your new Hostea instance!
Your Hostea instance is being prepared, you will receive an email
notification when it is ready.
You can use the following credentials to log into an admin account on
your new Gitea instance. Great powers come with great responsibilities,
so use the admin credentials wisely. When in doubt, consult the Gitea
docs or contact support!
your new Hostea Gitea instance. Great powers come with great
responsibilities, so use the admin credentials wisely. When in doubt,
consult the Gitea docs or contact support!
- username : root
- password: {{ gitea_password }}

View File

@ -69,7 +69,7 @@ def create_instance(request, instance_name: str):
sender = settings.DEFAULT_FROM_EMAIL
send_mail(
subject="[Hostea] Your Hostea instance is now online!",
subject="[Hostea] Gitea admin credentials",
message=body,
from_email=f"No reply Hostea<{sender}>", # TODO read from settings.py
recipient_list=[request.user.email],