mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
fix(registration) do not re-enable registrations if the first one is successfull
This commit is contained in:
parent
a91b544830
commit
7d08358791
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue