summaryrefslogtreecommitdiffstats
path: root/webapp/components/claim
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-06-03 13:02:46 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-06-03 13:02:46 -0400
commitd337e42c4b10cd6e6e4efb008c67a6dc833dd968 (patch)
tree133be038f84a6d9a19ed5019f7055f9e42daf66a /webapp/components/claim
parent9857b60b98069561659e3cf3fc4609fed7143547 (diff)
downloadchat-d337e42c4b10cd6e6e4efb008c67a6dc833dd968.tar.gz
chat-d337e42c4b10cd6e6e4efb008c67a6dc833dd968.tar.bz2
chat-d337e42c4b10cd6e6e4efb008c67a6dc833dd968.zip
Fix missing invalid password errors on claim pages (#3236)
Diffstat (limited to 'webapp/components/claim')
-rw-r--r--webapp/components/claim/components/email_to_ldap.jsx4
-rw-r--r--webapp/components/claim/components/email_to_oauth.jsx4
-rw-r--r--webapp/components/claim/components/oauth_to_email.jsx4
3 files changed, 6 insertions, 6 deletions
diff --git a/webapp/components/claim/components/email_to_ldap.jsx b/webapp/components/claim/components/email_to_ldap.jsx
index f7bb02c6e..c37717421 100644
--- a/webapp/components/claim/components/email_to_ldap.jsx
+++ b/webapp/components/claim/components/email_to_ldap.jsx
@@ -54,8 +54,8 @@ export default class EmailToLDAP extends React.Component {
window.location.href = data.follow_link;
}
},
- (error) => {
- this.setState({error});
+ (err) => {
+ this.setState({error: err.message});
}
);
}
diff --git a/webapp/components/claim/components/email_to_oauth.jsx b/webapp/components/claim/components/email_to_oauth.jsx
index 171ebe8a4..6b0a90e8e 100644
--- a/webapp/components/claim/components/email_to_oauth.jsx
+++ b/webapp/components/claim/components/email_to_oauth.jsx
@@ -39,8 +39,8 @@ export default class EmailToOAuth extends React.Component {
window.location.href = data.follow_link;
}
},
- (error) => {
- this.setState({error});
+ (err) => {
+ this.setState({error: err.message});
}
);
}
diff --git a/webapp/components/claim/components/oauth_to_email.jsx b/webapp/components/claim/components/oauth_to_email.jsx
index 1a3b962a2..ba01a8adf 100644
--- a/webapp/components/claim/components/oauth_to_email.jsx
+++ b/webapp/components/claim/components/oauth_to_email.jsx
@@ -46,8 +46,8 @@ export default class OAuthToEmail extends React.Component {
browserHistory.push(data.follow_link);
}
},
- (error) => {
- this.setState({error});
+ (err) => {
+ this.setState({error: err.message});
}
);
}