mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 12:40:00 +00:00
Added sync after changing username so username would update
This commit is contained in:
parent
e0a081b0ff
commit
13e89f1947
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue