mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-03-06 21:01:09 +00:00
fix invalid email bug
api returns 400 status when email contains extra spaces
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = React.createClass({
|
||||
});
|
||||
|
||||
request.post(api('invites'), {
|
||||
email: this.state.email
|
||||
email: this.state.email.trim()
|
||||
})
|
||||
.then(this.handleSuccess)
|
||||
.catch(this.handleError);
|
||||
|
||||
Reference in New Issue
Block a user