mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 12:46:39 +02:00
feat(home): add a cron job to check users account status to idle if for lang time no sign in
This commit is contained in:
@@ -183,7 +183,10 @@
|
||||
NotifycationService.showNotify('info', null, $translate.instant('SIGN.SIGNIN_WELCOME_NORMAL', {name: response.displayName}));
|
||||
}
|
||||
if (vm.authentication.user.status === 'idle') {
|
||||
NotifycationService.showNotify('error', null, $translate.instant('SIGN.SIGNIN_WELCOME_IDLE', {name: response.displayName}));
|
||||
NotifycationService.showNotify('error', null, $translate.instant('SIGN.SIGNIN_WELCOME_IDLE', {
|
||||
name: response.displayName,
|
||||
days: (vm.signConfig.idle.accountIdleForTime / (60 * 60 * 1000 * 24))
|
||||
}));
|
||||
}
|
||||
// And redirect to the previous or home page
|
||||
$state.go($state.previous.state.name || 'home', $state.previous.params);
|
||||
|
||||
Reference in New Issue
Block a user