clarify auth token is equivalent to a password
This commit is contained in:
parent
4c2143fda4
commit
1916589553
2 changed files with 11 additions and 3 deletions
|
@ -9,7 +9,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
*
|
*
|
||||||
*
|
* The "auth token" displayable on Help offers security warning
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
*
|
*
|
||||||
|
|
|
@ -50,7 +50,7 @@ class HelpPage extends React.PureComponent {
|
||||||
render() {
|
render() {
|
||||||
let ver, osName, platform, newVerLink;
|
let ver, osName, platform, newVerLink;
|
||||||
|
|
||||||
const { doAuth, user } = this.props;
|
const { accessToken, doAuth, user } = this.props;
|
||||||
|
|
||||||
if (this.state.versionInfo) {
|
if (this.state.versionInfo) {
|
||||||
ver = this.state.versionInfo;
|
ver = this.state.versionInfo;
|
||||||
|
@ -196,7 +196,15 @@ class HelpPage extends React.PureComponent {
|
||||||
onClick={this.showAccessToken.bind(this)}
|
onClick={this.showAccessToken.bind(this)}
|
||||||
/>}
|
/>}
|
||||||
{!this.state.accessTokenHidden &&
|
{!this.state.accessTokenHidden &&
|
||||||
this.props.accessToken}
|
accessToken &&
|
||||||
|
<div>
|
||||||
|
<p>{accessToken}</p>
|
||||||
|
<div className="help">
|
||||||
|
{__(
|
||||||
|
"This is equivalent to a password. Do not post or share this."
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Add table
Reference in a new issue