feature: Logout wallet after 15 minutes of inactivity
This commit is contained in:
parent
010c13fa4f
commit
f704826a5c
5 changed files with 24 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue