Validate: makes the user_status = 2
authorYasin <mohammed-yasin.rahman@lip6.fr>
Fri, 31 Jan 2014 10:04:16 +0000 (11:04 +0100)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Fri, 31 Jan 2014 10:04:16 +0000 (11:04 +0100)
portal/actions.py
portal/templates/account-view.html

index d161be5..a6349c7 100644 (file)
@@ -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:
index 3c3d543..8f853e1 100644 (file)
                        <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 %}         
                        <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%}