Skip to content

Commit

Permalink
Removed Activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Technopathic committed Dec 1, 2016
1 parent dffc23b commit 13bc2cd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
22 changes: 0 additions & 22 deletions app/Http/Controllers/AuthenticateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,26 +229,4 @@ public function refreshToken() {
return Response::json($token);
}

public function unSubscribe($token)
{
$subscription = Subscription::where('subscriptionID', '=', $token)->first();

if(!empty($subscription))
{
if($subscription->subscriptionActive == true)
{
$subscription->subscriptionActive = false;
$subscription->save();
//Unsubscribed
return Response::json(1);
}
else {
//Not subscribed
return Response::json(0);
}
} else {
//Token not found
return Response::json(2);
}
}
}
2 changes: 0 additions & 2 deletions app/Http/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,6 @@ public function saveOptions(Request $request)
$options->siteLogo = $request->json('siteLogo');
$options->homePage = $request->json('homePage');
$options->allowRegistration = $request->json('allowRegistration');
$options->allowSubscription = $request->json('allowSubscription');
$options->requireActivation = $request->json('requireActivation');
$options->replyModeration = $request->json('replyModeration');
$options->aboutWebsite = $request->json('aboutWebsite');
$options->homeBanner = $request->json('homeBanner');
Expand Down
2 changes: 0 additions & 2 deletions public/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,6 @@ angular.module('remark.dashboard', [])
$scope.apps = optionData.data.apps;

$scope.options.allowRegistration = Number($scope.options.allowRegistration);
$scope.options.requireActivation = Number($scope.options.requireActivation);
$scope.options.replyModeration = Number($scope.options.replyModeration);
$scope.options.homeBanner = Number($scope.options.homeBanner);
$scope.options.allowAsk = Number($scope.options.allowAsk);
Expand All @@ -1523,7 +1522,6 @@ angular.module('remark.dashboard', [])
siteLogo:$scope.options.siteLogo,
homePage: $scope.options.homePage,
allowRegistration: $scope.options.allowRegistration,
requireActivation: $scope.options.requireActivation,
replyModeration: $scope.options.replyModeration,
allowAsk: $scope.options.allowAsk,
homeBanner: $scope.options.homeBanner,
Expand Down
6 changes: 0 additions & 6 deletions public/views/dashboard/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ <h2 class="content-h2">General</h2>
</md-checkbox>
<pre hide-xs>Allow Users to sign up to your site.</pre>
</div>
<div class="menuSelect">
<md-checkbox ng-model="options.requireActivation" aria-label="Require Activation" ng-true-value="1" ng-false-value="0">
Require Activation
</md-checkbox>
<pre hide-xs>Requires Email Activation on Sign up.</pre>
</div>
<div class="menuSelect">
<md-checkbox ng-model="options.replyModeration" aria-label="Moderate Replies" ng-true-value="1" ng-false-value="0">
Moderate Replies
Expand Down

0 comments on commit 13bc2cd

Please sign in to comment.