summaryrefslogtreecommitdiffstats
path: root/web/react/components/password_reset_send_link.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-09-02 09:46:40 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-09-02 09:46:40 -0700
commitaac83dcedc644dfc23fc46366e54c65e0c86c5b9 (patch)
treea3672c07f149e4576021ec81fe62b183fc6eee66 /web/react/components/password_reset_send_link.jsx
parente2a24f40b750886156cef33a38218315c06aef35 (diff)
downloadchat-aac83dcedc644dfc23fc46366e54c65e0c86c5b9.tar.gz
chat-aac83dcedc644dfc23fc46366e54c65e0c86c5b9.tar.bz2
chat-aac83dcedc644dfc23fc46366e54c65e0c86c5b9.zip
Additional refactoring according to issues not caught by eslint
Diffstat (limited to 'web/react/components/password_reset_send_link.jsx')
-rw-r--r--web/react/components/password_reset_send_link.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/password_reset_send_link.jsx b/web/react/components/password_reset_send_link.jsx
index 9c5401b59..1e6cc3607 100644
--- a/web/react/components/password_reset_send_link.jsx
+++ b/web/react/components/password_reset_send_link.jsx
@@ -15,7 +15,7 @@ export default class PasswordResetSendLink extends React.Component {
e.preventDefault();
var state = {};
- var email = this.refs.email.getDOMNode().value.trim();
+ var email = React.findDOMNode(this.refs.email).value.trim();
if (!email) {
state.error = 'Please enter a valid email address.';
this.setState(state);
@@ -32,7 +32,7 @@ export default class PasswordResetSendLink extends React.Component {
client.sendPasswordReset(data,
function passwordResetSent() {
this.setState({error: null, updateText: <p>A password reset link has been sent to <b>{email}</b> for your <b>{this.props.teamDisplayName}</b> team on {window.location.hostname}.</p>, moreUpdateText: 'Please check your inbox.'});
- $(this.refs.reset_form.getDOMNode()).hide();
+ $(React.findDOMNode(this.refs.reset_form)).hide();
}.bind(this),
function passwordResetFailedToSend(err) {
this.setState({error: err.message, update_text: null, moreUpdateText: null});