Password required when create new wallet (#284).
This commit is contained in:
parent
ee6220ea0a
commit
ceb97b29e6
2 changed files with 12 additions and 6 deletions
|
|
@ -32,7 +32,12 @@ angular.module('copay.setup').controller('SetupController',
|
|||
updateRCSelect(tc);
|
||||
});
|
||||
|
||||
$scope.create = function() {
|
||||
$scope.create = function(form) {
|
||||
if (form && form.$invalid) {
|
||||
$rootScope.flashMessage = { message: 'Please, enter required fields', type: 'error'};
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.loading = true;
|
||||
|
||||
var passphrase = Passphrase.getBase64($scope.walletPassword);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue