fix(torrents): reomve redundant login check code

This commit is contained in:
OldHawk
2017-10-22 21:40:24 +08:00
parent 36deb6e3a4
commit a16793e2fd
30 changed files with 8 additions and 193 deletions

View File

@@ -19,13 +19,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
*/

View File

@@ -19,13 +19,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
*/

View File

@@ -19,13 +19,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
*/

View File

@@ -20,13 +20,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* getUserWarningTorrent
*/

View File

@@ -16,13 +16,6 @@
vm.lang = getStorageLangService.getLang();
vm.user = Authentication.user;
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* auth-user-changed
*/

View File

@@ -9,16 +9,8 @@
function ResetPasskeyController($scope, $state, $translate, Authentication, UsersService, Notification, ModalConfirmService) {
var vm = this;
vm.user = Authentication.user;
/**
* If user is not signed in then redirect back home
*/
if (!vm.user) {
$state.go('authentication.signin');
}
vm.resetPasskey = function () {
var modalOptions = {
closeButtonText: $translate.instant('RESET_PASSKEY_CONFIRM_CANCEL'),

View File

@@ -19,13 +19,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
*/

View File

@@ -19,13 +19,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
*/

View File

@@ -13,12 +13,5 @@
vm.scoreLevelData = ScoreLevelService.getScoreLevelJson(vm.user.score);
vm.announce = MeanTorrentConfig.meanTorrentConfig.announce;
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
}
}());

View File

@@ -19,13 +19,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
*/

View File

@@ -22,13 +22,6 @@
vm.searchTags = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* getWarningTorrent
*/