mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #1603 from matiaspando/feature/emailConfirmation
Added email confirmation message
This commit is contained in:
commit
376eca7802
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue