From: Yasin <mohammed-yasin.rahman@lip6.fr> Date: Fri, 31 Jan 2014 10:04:16 +0000 (+0100) Subject: Validate: makes the user_status = 2 X-Git-Tag: myslice-0.3-0~8^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=23a066e493df6d553e358c1a3fcee04e6c371458;p=unfold.git Validate: makes the user_status = 2 --- diff --git a/portal/actions.py b/portal/actions.py index d161be5c..a6349c76 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -235,6 +235,9 @@ def portal_validate_request(wsgi_request, request_ids): except Exception, e: request_status['SFA user'] = {'status': False, 'description': str(e)} + + user_params = {'status':2} + manifold_update_user(request, request['email'],user_params) # MANIFOLD user should be added beforehand, during registration #try: diff --git a/portal/templates/account-view.html b/portal/templates/account-view.html index 3c3d5438..8f853e1b 100644 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@ -156,6 +156,7 @@ <th>Account Type</th> <th>Account Delegation</th> <th>User hrn</th> + <th>User Status</th> <!--<th>Pub Key</th> --> </tr> {% for row in principal_acc %} @@ -164,6 +165,7 @@ <td class="odd"> {{ row.account_type }} </td> <td class="odd"> {{ row.delegation_type }} </td> <td class="odd"> {{ row.usr_hrn }} </td> + <td class="odd"> {{ row.user_status }} </td> <!-- <td class="even"> {{ row.usr_pubkey }} </td> --> </tr> {%endfor%}