Added email confirmation message
This commit is contained in:
parent
9066e77511
commit
8a291732b9
2 changed files with 24 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
$scope.retreiving = true;
|
||||
|
||||
identityService.check($scope);
|
||||
|
||||
$scope.confirmedEmail = getParam('confirmed');
|
||||
$scope.openProfile = function(form) {
|
||||
if (form && form.$invalid) {
|
||||
notification.error('Error', 'Please enter the required fields');
|
||||
|
|
@ -14,4 +14,18 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
$scope.loading = true;
|
||||
identityService.open($scope, form);
|
||||
}
|
||||
|
||||
function getParam(sname) {
|
||||
var params = location.search.substr(location.search.indexOf("?") + 1);
|
||||
var sval = "";
|
||||
params = params.split("&");
|
||||
// split param and value into individual pieces
|
||||
for (var i = 0; i < params.length; i++) {
|
||||
var temp = params[i].split("=");
|
||||
if ([temp[0]] == sname) {
|
||||
sval = temp[1];
|
||||
}
|
||||
}
|
||||
return sval;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue