1
0
mirror of https://github.com/bitwarden/web synced 2025-12-17 00:33:26 +00:00

print recovery code. changed vault and login route

This commit is contained in:
Kyle Spearrin
2017-02-11 14:21:21 -05:00
parent 52b89455d7
commit 7373e281ac
3 changed files with 22 additions and 15 deletions

View File

@@ -74,6 +74,14 @@
}).$promise;
};
$scope.print = function (printContent) {
var w = window.open();
w.document.write('<div style="font-size: 18px; text-align: center;"><p>bitwarden two-step login recovery code:</p>' +
'<pre>' + printContent + '</pre>');
w.print();
w.close();
}
$scope.close = function () {
$uibModalInstance.dismiss('cancel');
};