mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(registration) do not re-enable registrations if the first one is successfull
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user