diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-06-03 13:02:46 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-06-03 13:02:46 -0400 |
commit | d337e42c4b10cd6e6e4efb008c67a6dc833dd968 (patch) | |
tree | 133be038f84a6d9a19ed5019f7055f9e42daf66a | |
parent | 9857b60b98069561659e3cf3fc4609fed7143547 (diff) | |
download | chat-d337e42c4b10cd6e6e4efb008c67a6dc833dd968.tar.gz chat-d337e42c4b10cd6e6e4efb008c67a6dc833dd968.tar.bz2 chat-d337e42c4b10cd6e6e4efb008c67a6dc833dd968.zip |
Fix missing invalid password errors on claim pages (#3236)
-rw-r--r-- | webapp/components/claim/components/email_to_ldap.jsx | 4 | ||||
-rw-r--r-- | webapp/components/claim/components/email_to_oauth.jsx | 4 | ||||
-rw-r--r-- | webapp/components/claim/components/oauth_to_email.jsx | 4 |
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}); } ); } |