Commit add334af authored by Eric Seigne's avatar Eric Seigne
Browse files

choose account on start

parent b718c7f9
......@@ -1003,9 +1003,16 @@ document.addEventListener('init', function (event) {
if (localGetData("api_server") !== null) {
//Au lancement on regarde si on a pas déjà ces infos de la dernière fois ...
// switchServer('#server', localGetData("name_server"), localGetData("api_server"));
//Et on essaye de reprendre la session !
//Et on essaye de reprendre la session ! sauf si on a plusieurs comptes sur l'appli
//en ce cas on affiche toujours le user switcher au lancement !
myDebug("Login with API token...");
loginWithAPIToken();
let a = localGetData("accounts");
if (a !== null && a !== "") {
accounts = JSON.parse(a);
if (accounts.length == 1) {
loginWithAPIToken();
}
}
}
$(".toggle-password").click(function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment