feature: Logout wallet after 15 minutes of inactivity

This commit is contained in:
Gustavo Maximiliano Cortez 2014-07-30 20:12:22 -03:00
commit f704826a5c
5 changed files with 24 additions and 3 deletions

View file

@ -65,10 +65,13 @@ angular
//Setting HTML5 Location Mode
angular
.module('copayApp')
.config(function($locationProvider) {
.config(function($locationProvider, $idleProvider) {
$locationProvider
.html5Mode(false)
.hashPrefix('!');
// IDLE timeout
$idleProvider.idleDuration(15 * 60); // in seconds
$idleProvider.warningDuration(10); // in seconds
})
.run(function($rootScope, $location) {
$rootScope.$on('$routeChangeStart', function(event, next, current) {