mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 15:15:33 +02:00
fix(torrents): reomve redundant login check code
This commit is contained in:
@@ -19,13 +19,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* buildPager
|
||||
*/
|
||||
|
||||
@@ -19,13 +19,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* buildPager
|
||||
*/
|
||||
|
||||
@@ -19,13 +19,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* buildPager
|
||||
*/
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* getUserWarningTorrent
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -19,13 +19,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* buildPager
|
||||
*/
|
||||
|
||||
@@ -19,13 +19,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* buildPager
|
||||
*/
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
}());
|
||||
|
||||
@@ -19,13 +19,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* buildPager
|
||||
*/
|
||||
|
||||
@@ -22,13 +22,6 @@
|
||||
|
||||
vm.searchTags = [];
|
||||
|
||||
/**
|
||||
* If user is not signed in then redirect back home
|
||||
*/
|
||||
if (!Authentication.user) {
|
||||
$state.go('authentication.signin');
|
||||
}
|
||||
|
||||
/**
|
||||
* getWarningTorrent
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user