Added sync after changing username so username would update
This commit is contained in:
@@ -85,6 +85,7 @@ habitrpg.controller('SettingsCtrl',
|
||||
.success(function(){
|
||||
alert(window.env.t('usernameSuccess'));
|
||||
$scope.changeUser = {};
|
||||
User.sync();
|
||||
})
|
||||
.error(function(data){
|
||||
alert(data.err);
|
||||
|
||||
Reference in New Issue
Block a user