Added email confirmation message

This commit is contained in:
Matias Pando 2014-10-30 12:06:48 -03:00
parent 9066e77511
commit 8a291732b9
2 changed files with 24 additions and 1 deletions

View File

@ -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;
}
});

View File

@ -9,6 +9,15 @@
<img src="img/logo-negative-beta.svg" alt="Copay" width="146" height="59">
<div ng-include="'views/includes/version.html'"></div>
</div>
<div class="p10 box-setup bg-success m10b" ng-show="confirmedEmail">
<div class="left">
<i class="size-36 fi-alert m10r"></i>
</div>
<div class="size-12" translate>
<b>Copay now needs a confirmation.</b><br />
You have to sign in to confirm your email
</div>
</div>
<div class="box-setup">
<h1><span translate>Sign in to</span> <b>Copay</b></h1>
<form name="loginForm" ng-submit="openProfile(loginForm)" novalidate>