Skip to content

Commit

Permalink
Fix: Show correct auth method in user details
Browse files Browse the repository at this point in the history
When viewing the details of a user, the correct authentication
method is now shown.
Previously only the table showed the correct method while the details
always showed "Local".
  • Loading branch information
timopollmeier authored and bjoernricks committed Apr 20, 2023
1 parent 3c6bdf9 commit dd6bc8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/pages/users/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const convert_allow = ({addresses, allow}) => {
};

const UserDetails = ({entity, links = true}) => {
const {auth_method, comment, groups = [], hosts = {}, roles = []} = entity;
const {authMethod, comment, groups = [], hosts = {}, roles = []} = entity;
return (
<Layout grow flex="column">
<InfoTable>
Expand Down Expand Up @@ -129,7 +129,7 @@ const UserDetails = ({entity, links = true}) => {

<TableRow>
<TableData>{_('Authentication Type')}</TableData>
<TableData>{convert_auth_method(auth_method)}</TableData>
<TableData>{convert_auth_method(authMethod)}</TableData>
</TableRow>
</TableBody>
</InfoTable>
Expand Down

0 comments on commit dd6bc8c

Please sign in to comment.