Pass version to UI through AppConfig, instead of login payload.master

This makes the version info updated with a browser refresh (no need to logout and login again)
This commit is contained in:
Deluan
2020-04-08 11:00:30 -04:00
parent db246900a6
commit 089a92157f
6 changed files with 35 additions and 14 deletions
-1
View File
@@ -63,7 +63,6 @@ func handleLogin(ds model.DataStore, username string, password string, w http.Re
"name": user.Name,
"username": username,
"isAdmin": user.IsAdmin,
"version": consts.Version(),
})
}