forked from Hostea/dashboard
fix: Gite credentials email: fix subject and let user know instance is
being provisioned fixes: https://gitea.hostea.org/Hostea/dashboard/issues/44wip-site
parent
b12cc044da
commit
a95158f3df
|
@ -114,7 +114,7 @@ class BillingTest(TestCase):
|
||||||
all(
|
all(
|
||||||
[
|
[
|
||||||
instance_notificaiton.to[0] == self.email,
|
instance_notificaiton.to[0] == self.email,
|
||||||
"Congratulations on your new Gitea instance!"
|
"Congratulations on your new Hostea instance!"
|
||||||
in instance_notificaiton.body,
|
in instance_notificaiton.body,
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
Hello {{ username }},
|
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
|
You can use the following credentials to log into an admin account on
|
||||||
your new Gitea instance. Great powers come with great responsibilities,
|
your new Hostea Gitea instance. Great powers come with great
|
||||||
so use the admin credentials wisely. When in doubt, consult the Gitea
|
responsibilities, so use the admin credentials wisely. When in doubt,
|
||||||
docs or contact support!
|
consult the Gitea docs or contact support!
|
||||||
|
|
||||||
- username : root
|
- username : root
|
||||||
- password: {{ gitea_password }}
|
- password: {{ gitea_password }}
|
||||||
|
|
|
@ -69,7 +69,7 @@ def create_instance(request, instance_name: str):
|
||||||
sender = settings.DEFAULT_FROM_EMAIL
|
sender = settings.DEFAULT_FROM_EMAIL
|
||||||
|
|
||||||
send_mail(
|
send_mail(
|
||||||
subject="[Hostea] Your Hostea instance is now online!",
|
subject="[Hostea] Gitea admin credentials",
|
||||||
message=body,
|
message=body,
|
||||||
from_email=f"No reply Hostea<{sender}>", # TODO read from settings.py
|
from_email=f"No reply Hostea<{sender}>", # TODO read from settings.py
|
||||||
recipient_list=[request.user.email],
|
recipient_list=[request.user.email],
|
||||||
|
|
Loading…
Reference in New Issue