Put back server picker for registration

* Also fix bug where you couldn't picxk a different server if
   you were already registered as a guest (because it still sent
   the access token which the new server rejected)
 * Propagate errors from UI auth back to registration so it goes
   back to the registration screen
This commit is contained in:
David Baker 2017-02-27 17:24:28 +00:00
parent 454aa0757a
commit e5853a6571
2 changed files with 75 additions and 24 deletions

View file

@ -91,6 +91,7 @@ export default React.createClass({
this._authLogic.attemptAuth().then((result) => {
this.props.onFinished(true, result);
}).catch((error) => {
this.props.onFinished(false, error);
console.error("Error during user-interactive auth:", error);
if (this._unmounted) {
return;