Commit 96ac544a authored by Marcos Felipe Barboza's avatar Marcos Felipe Barboza
Browse files

Merge branch 'release/1.3.10' into 'master'


See merge request !6
parents bf32fac0 0a2d48b7
......@@ -65,14 +65,13 @@
{% else %}
<td> never activated </td>
<!-- <td>
<form class="form-horizontal" role="form" action="" method="post" id="enable_form_{{urn}}">
<form class="form-horizontal" role="form" action="" method="post" id="resend_email_{{attrs.email_address}}">
{% csrf_token %}
<input type="hidden" name="enable_member" value="{{urn}}">
<button class="btn btn-primary enable_member_btn">Activate</button>
<input type="hidden" name="resend_email" value="{{attrs.email_address}}">
<button class="btn btn-primary resend_email_btn">Resend email</button>
{% endif %}
{% endfor %}
......@@ -434,6 +434,23 @@ def get_member_data_from_form(request, form, email=None):
return member_attrs
def resend_email(credential, member_email):
This method calls the generate_and_send_activation_token method in order to resend
activation token to users email.
# Set operation dictionary with delete status and message.
operation = {
'operation_status': "success",
'operation_message': "Confirmation email sent to user!"}
# Return operation dictionary.
return operation
def enable_member(credential, member_urn):
This method calls the update_member method in order to set
......@@ -48,6 +48,12 @@ def manage_members(request):
request.session['member_cred'], request.POST['enable_member'])
# Set context dictionary with the result of enable operation.
elif (request.method == 'POST' and 'resend_email' in request.POST):
# Perform update member_enabled flag.
operation = v_members.resend_email(
request.session['member_cred'], request.POST['resend_email'])
# Set context dictionary with the result of enable operation.
# Perform the search.
operation = Member().retrieve_member(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment