go back to step2 if activation fails

This commit is contained in:
Girish Ramakrishnan
2016-06-02 10:25:02 -07:00
parent e79119b72a
commit c3113bd74d

View File

@@ -225,7 +225,7 @@ app.controller('FinishController', ['$scope', '$location', 'Wizard', 'Client', f
Client.createAdmin(Wizard.username, Wizard.password, Wizard.email, Wizard.displayName, Wizard.setupToken, function (error) {
if (error) {
console.error('Internal error', error);
window.location.href = '/error.html';
$location.path('/step2').search('error', error.message);
return;
}