mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 04:43:11 +08:00
Add expiry_days to template context
This commit is contained in:
@@ -17,6 +17,8 @@ the email is sent:
|
||||
- terms_url Your T&Cs URL
|
||||
- contact_email Your galaxy's contact email
|
||||
- instance_resource_url Your galaxy's resource website URL
|
||||
- expiry_days Days until the activation link expires
|
||||
- custom_message Your Galaxy config custom_activation_email_message
|
||||
|
||||
Template begins here >>>>>>
|
||||
<!DOCTYPE html>
|
||||
|
||||
@@ -17,6 +17,8 @@ sent:
|
||||
- terms_url Your T&Cs URL
|
||||
- contact_email Your galaxy's contact email
|
||||
- instance_resource_url Your galaxy's resource website URL
|
||||
- custom_message Your Galaxy config custom_activation_email_message
|
||||
- expiry_days Days until the activation link expires
|
||||
|
||||
Template begins here>>>>>>
|
||||
Thanks for signing up to use Galaxy!
|
||||
|
||||
@@ -526,6 +526,7 @@ class UserManager(base.ModelManager, deletable.PurgableManagerMixin):
|
||||
'contact_email': self.app.config.error_email_to,
|
||||
'instance_resource_url': self.app.config.instance_resource_url,
|
||||
'custom_message': self.app.config.custom_activation_email_message,
|
||||
'expiry_days': self.app.config.activation_grace_period,
|
||||
}
|
||||
body = template.render('mail/activation-email.txt', template_context, self.app.config.templates_dir)
|
||||
html = template.render('mail/activation-email.html', template_context, self.app.config.templates_dir)
|
||||
|
||||
Reference in New Issue
Block a user