parent
048d8d2ec7
commit
81327264f7
|
@ -363,15 +363,12 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_makeRegisterRequest: function(auth, inhibitLogin) {
|
_makeRegisterRequest: function(auth) {
|
||||||
// default is to inhibit login if we're trying to register with an email address
|
// We inhibit login if we're trying to register with an email address: this
|
||||||
// We do this so that the client that gets spawned when clicking on the email
|
// avoids a lot of complex race conditions that can occur if we try to log
|
||||||
// verification link doesn't get logged in (it can't choose different params
|
// the user in one one or both of the tabs they might end up with after
|
||||||
// because it doesn't have the password and it can only supply a complete
|
// clicking the email link.
|
||||||
// set of parameters). If the original client is still around when the
|
let inhibitLogin = Boolean(this.state.formVals.email);
|
||||||
// registration completes, it can resubmit with inhibitLogin=false to
|
|
||||||
// log itself in!
|
|
||||||
if (inhibitLogin === undefined) inhibitLogin = Boolean(this.state.formVals.email);
|
|
||||||
|
|
||||||
// Only send the bind params if we're sending username / pw params
|
// Only send the bind params if we're sending username / pw params
|
||||||
// (Since we need to send no params at all to use the ones saved in the
|
// (Since we need to send no params at all to use the ones saved in the
|
||||||
|
|
Loading…
Reference in New Issue