mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Fix user auth history modal and provide more info
This commit is contained in:
parent
a368124040
commit
d0961ca5e7
@ -769,7 +769,7 @@ class DetailedHistory():
|
|||||||
if 'domain_type' in detail_dict and 'account_id' in detail_dict: # this is a domain creation
|
if 'domain_type' in detail_dict and 'account_id' in detail_dict: # this is a domain creation
|
||||||
self.detailed_msg = render_template_string("""
|
self.detailed_msg = render_template_string("""
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<tr><td>Domain type:</td><td>{{ domaintype }}</td></tr>
|
<tr><td>Domain Type:</td><td>{{ domaintype }}</td></tr>
|
||||||
<tr><td>Account:</td><td>{{ account }}</td></tr>
|
<tr><td>Account:</td><td>{{ account }}</td></tr>
|
||||||
</table>
|
</table>
|
||||||
""",
|
""",
|
||||||
@ -778,22 +778,23 @@ class DetailedHistory():
|
|||||||
|
|
||||||
elif 'authenticator' in detail_dict: # this is a user authentication
|
elif 'authenticator' in detail_dict: # this is a user authentication
|
||||||
self.detailed_msg = render_template_string("""
|
self.detailed_msg = render_template_string("""
|
||||||
<table class="table table-bordered table-striped" style="width:565px;">
|
<table class="table table-bordered table-striped"">
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th colspan="3" style="background: rgba({{ background_rgba }});">
|
|
||||||
<p style="color:white;">User {{ username }} authentication {{ auth_result }}</p>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Authenticator Type:</td>
|
<td>Username:</td>
|
||||||
<td colspan="2">{{ authenticator }}</td>
|
<td>{{ username }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>IP Address</td>
|
<td>Authentication Result:</td>
|
||||||
<td colspan="2">{{ ip_address }}</td>
|
<td>{{ auth_result }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Authenticator Type:</td>
|
||||||
|
<td>{{ authenticator }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>IP Address:</td>
|
||||||
|
<td>{{ ip_address }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user