Added sync after changing username so username would update

This commit is contained in:
Blade Barringer 2015-01-18 15:50:43 -06:00
parent e0a081b0ff
commit 13e89f1947

View file

@ -85,6 +85,7 @@ habitrpg.controller('SettingsCtrl',
.success(function(){ .success(function(){
alert(window.env.t('usernameSuccess')); alert(window.env.t('usernameSuccess'));
$scope.changeUser = {}; $scope.changeUser = {};
User.sync();
}) })
.error(function(data){ .error(function(data){
alert(data.err); alert(data.err);