1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-23 00:55:58 +01:00

fix connexion problem with new users

This commit is contained in:
Alain Takoudjou 2020-09-02 17:55:44 +02:00
parent 788e43ba7a
commit 32459b4b5b
2 changed files with 9 additions and 4 deletions

View file

@ -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 @@
<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>

View file

@ -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() {
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();