Merge pull request #511 from matrix-org/dbkr/fix_multiple_email_fix

Fix registration
pull/21833/head
Richard van der Hoff 2016-10-11 10:51:13 +01:00 committed by GitHub
commit 55437d7583
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class Register extends Signup {
if (flow) {
console.log("Active flow => %s", JSON.stringify(flow));
var flowStage = self.firstUncompletedStage(flow);
if (flowStage != self.activeStage.type) {
if (!self.activeStage || flowStage != self.activeStage.type) {
return self._startStage(client, flowStage).catch(function(err) {
self.setStep('START');
throw err;