Skip to content

Commit

Permalink
Mitigate the secret display issue, not a final fix for the potential …
Browse files Browse the repository at this point in the history
…security risk (#297)
  • Loading branch information
hydraxman committed Feb 23, 2023
1 parent 06c8317 commit a81cf1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion react/src/component/AuthView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class AuthView extends BaseView {
tokenList.forEach((t) => {
tokenRows.push(<StyledTableRow key={t.id} id={t.id} hover>
<TableCell id={t.id} align="center">
{t.token}&nbsp;
{_.truncate(t.token, {'length': `20`, 'omission': '*****************'})}&nbsp;
<IconButton onClick={() => this.copyContent(t.token)}>
<span className="material-icons-outlined">content_copy</span>
</IconButton>
Expand Down
4 changes: 2 additions & 2 deletions react/src/component/DeviceGroupView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ export default class DeviceGroupView extends BaseView {
<DialogTitle>Group token generated</DialogTitle>
<DialogContent>
<DialogContentText>
Access Key:
{groupToken}&nbsp;
Access Key:&nbsp;
{_.truncate(groupToken, {'length': `20`, 'omission': '*****************'})}&nbsp;
<IconButton onClick={() => {
navigator.clipboard.writeText(groupToken)
}}>
Expand Down

0 comments on commit a81cf1d

Please sign in to comment.