Commit 32459b4b authored by Alain Takoudjou's avatar Alain Takoudjou

fix connexion problem with new users

parent 788e43ba
...@@ -64,9 +64,9 @@ ...@@ -64,9 +64,9 @@
</div> </div>
</li> </li>
<li> <li>
<div class="nav-button nav-link" id="user"> <div class="nav-button nav-link invisible" id="user">
<span><i class="fa fa-user dropbtn" aria-hidden="true"></i></span> <span><i class="fa fa-user dropbtn" aria-hidden="true"></i></span>
<label>User</label> <label>Profile</label>
</div> </div>
<div id="userDropdown" class="dropdown-content"> <div id="userDropdown" class="dropdown-content">
<div id="statdiv"> <div id="statdiv">
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<input id="password" type="password" name="password" <input id="password" type="password" name="password"
autocomplete="current-password" class="form-control"/> autocomplete="current-password" class="form-control"/>
<div class="clear"></div> <div class="clear"></div>
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect" disabled/> <input id="connectbutton" type="submit" class="btn btn-blue" value="Connect"/>
</form> </form>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
......
...@@ -1063,6 +1063,7 @@ document.getElementById('openside').onclick = function(e) { ...@@ -1063,6 +1063,7 @@ document.getElementById('openside').onclick = function(e) {
}; };
document.getElementById('user').onclick = function(e) { document.getElementById('user').onclick = function(e) {
e.preventDefault();
document.getElementById("userDropdown").classList.toggle("show"); document.getElementById("userDropdown").classList.toggle("show");
}; };
...@@ -1134,11 +1135,15 @@ function start() { ...@@ -1134,11 +1135,15 @@ function start() {
setLocalMute(localMute); setLocalMute(localMute);
document.getElementById('connectbutton').disabled = false; //document.getElementById('connectbutton').disabled = false;
let userpass = getUserPass(); let userpass = getUserPass();
if(userpass) if(userpass)
serverConnect(); serverConnect();
else {
document.getElementById("user").classList.add('invisible');
document.getElementById("login-container").classList.remove('invisible');
}
} }
start(); start();
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