mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 13:46:45 +00:00
bugfix/remove the Secret Key
This commit is contained in:
parent
5ed5b59f57
commit
9114537a56
@ -74,7 +74,6 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover tablesorter" id="invitation-list">
|
||||
<thead>
|
||||
<th>Secret Key</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>Email</th>
|
||||
@ -85,8 +84,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for invitation in invitations %}
|
||||
<tr data-invitation-id="{{ invitation.secret_key }}">
|
||||
<td>{{ invitation.secret_key }}</td>
|
||||
<tr>
|
||||
<td>{{ invitation.first_name }}</td>
|
||||
<td>{{ invitation.last_name }}</td>
|
||||
<td>{{ invitation.email }}</td>
|
||||
|
||||
@ -302,14 +302,14 @@ class InvitationView(LoginRequiredMixin, FormView):
|
||||
context.update({
|
||||
'invitations': invitations,
|
||||
})
|
||||
msg = 'Create User Invitation secret_key({}) at Bank({}) has been {}!'.format(result['secret_key'],data['bank_id'], result['status'] )
|
||||
msg = 'User Invitation ({}) at Bank({}) has been {}!'.format(result['first_name'],data['bank_id'], result['status'] )
|
||||
messages.success(self.request, msg)
|
||||
return self.render_to_response(context)
|
||||
except APIError as err:
|
||||
messages.error(self.request, err)
|
||||
return super(InvitationView, self).form_invalid(form)
|
||||
except:
|
||||
messages.error(self.request, "Unknown Error")
|
||||
except Exception as err:
|
||||
messages.error(self.request, "Unknown Error:{}".format(str(err)))
|
||||
return super(InvitationView, self).form_invalid(form)
|
||||
|
||||
class DeleteEntitlementView(LoginRequiredMixin, View):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user