diff --git a/website/public/js/controllers/authCtrl.js b/website/public/js/controllers/authCtrl.js index 06b241ff86..75e6de864a 100644 --- a/website/public/js/controllers/authCtrl.js +++ b/website/public/js/controllers/authCtrl.js @@ -15,7 +15,7 @@ angular.module('habitrpg') var runAuth = function(id, token) { User.authenticate(id, token, function(err) { - $scope.registrationInProgress = false; + if(!err) $scope.registrationInProgress = false; $window.location.href = ('/' + window.location.hash); }); };