fix(registration) do not re-enable registrations if the first one is successfull

This commit is contained in:
Matteo Pagliazzi
2015-05-06 16:23:15 +02:00
parent a91b544830
commit 7d08358791

View File

@@ -15,7 +15,7 @@ angular.module('habitrpg')
var runAuth = function(id, token) { var runAuth = function(id, token) {
User.authenticate(id, token, function(err) { User.authenticate(id, token, function(err) {
$scope.registrationInProgress = false; if(!err) $scope.registrationInProgress = false;
$window.location.href = ('/' + window.location.hash); $window.location.href = ('/' + window.location.hash);
}); });
}; };