From 7d08358791f0eb5a71fa1349e9d03f9397ae936c Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 6 May 2015 16:23:15 +0200 Subject: [PATCH] fix(registration) do not re-enable registrations if the first one is successfull --- website/public/js/controllers/authCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); };