Revision f9aea9c8 snf-astakos-app/astakos/im/activation_backends.py
b/snf-astakos-app/astakos/im/activation_backends.py | ||
---|---|---|
107 | 107 |
def handle_activation( |
108 | 108 |
self, user, activation_template_name='im/activation_email.txt', |
109 | 109 |
greeting_template_name='im/welcome_email.txt', |
110 |
admin_email_template_name='im/admin_notification.txt' |
|
110 |
admin_email_template_name='im/account_creation_notification.txt', |
|
111 |
helpdesk_email_template_name='im/helpdesk_notification.txt' |
|
111 | 112 |
): |
112 | 113 |
""" |
113 | 114 |
If the user is already active returns immediately. |
... | ... | |
123 | 124 |
|
124 | 125 |
if self._is_preaccepted(user): |
125 | 126 |
if user.email_verified: |
126 |
activate(user, greeting_template_name) |
|
127 |
activate( |
|
128 |
user, |
|
129 |
greeting_template_name, |
|
130 |
helpdesk_email_template_name |
|
131 |
) |
|
127 | 132 |
return RegistationCompleted() |
128 | 133 |
else: |
129 |
send_activation(user, activation_template_name) |
|
134 |
send_activation( |
|
135 |
user, |
|
136 |
activation_template_name |
|
137 |
) |
|
130 | 138 |
return VerificationSent() |
131 | 139 |
else: |
132 | 140 |
send_account_creation_notification( |
Also available in: Unified diff