Skip to content

Commit

Permalink
feat: keep position in authorization area
Browse files Browse the repository at this point in the history
Closes #131.
  • Loading branch information
djangoliv committed Mar 9, 2021
1 parent b0d9f9e commit eae5bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nativeauthenticator/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ChangeAuthorizationHandler(LocalBase):
@admin_only
async def get(self, slug):
UserInfo.change_authorization(self.db, slug)
self.redirect(self.hub.base_url + 'authorize')
self.redirect(self.hub.base_url + 'authorize#' + slug)


class ChangePasswordHandler(LocalBase):
Expand Down
4 changes: 2 additions & 2 deletions nativeauthenticator/templates/autorization-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>Authorization Area</h1>
<tbody>
{% for user in users %}
{% if user.is_authorized %}
<tr class="success">
<tr class="success" id={{ user.username }}>
<td>{{ user.username }}</td>
{% if ask_email %}
<td>{{ user.email }}</td>
Expand All @@ -28,7 +28,7 @@ <h1>Authorization Area</h1>
</td>
<td></td>
{% else %}
<tr>
<tr id={{ user.username }}>
<td>{{ user.username }}</td>
{% if ask_email %}
<td>{{ user.email }}</td>
Expand Down

0 comments on commit eae5bb5

Please sign in to comment.