clarify auth token is equivalent to a password

This commit is contained in:
Jeremy Kauffman 2017-09-03 11:28:16 -04:00
parent 4c2143fda4
commit 1916589553
2 changed files with 11 additions and 3 deletions

View file

@ -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
* *

View file

@ -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>