Skip to content
Snippets Groups Projects
Commit f412e4b3 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Fix anonymous registration (issue #40)

parent 60fc0538
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,9 @@ function NewAccountWizardController($scope, $ionicModal, $state, $ionicSideMenuD ...@@ -160,6 +160,9 @@ function NewAccountWizardController($scope, $ionicModal, $state, $ionicSideMenuD
Wallet.login($scope.accountData.username, $scope.accountData.password) Wallet.login($scope.accountData.username, $scope.accountData.password)
.then(function() { .then(function() {
if (!$scope.accountData.isMember) { if (!$scope.accountData.isMember) {
// Reset account data, and open wallet view
$scope.cancel();
$state.go('app.view_wallet');
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment