From f412e4b319857907075ee1a3dff6dd536d8d06e7 Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Tue, 7 Jun 2016 12:30:45 +0200 Subject: [PATCH] Fix anonymous registration (issue #40) --- www/js/controllers/home-controllers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/js/controllers/home-controllers.js b/www/js/controllers/home-controllers.js index 4f2a2c36e..7bcb615d7 100644 --- a/www/js/controllers/home-controllers.js +++ b/www/js/controllers/home-controllers.js @@ -160,6 +160,9 @@ function NewAccountWizardController($scope, $ionicModal, $state, $ionicSideMenuD Wallet.login($scope.accountData.username, $scope.accountData.password) .then(function() { if (!$scope.accountData.isMember) { + // Reset account data, and open wallet view + $scope.cancel(); + $state.go('app.view_wallet'); return; } -- GitLab