mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Connected menuBar login form to login page
This commit is contained in:
@ -24,6 +24,11 @@ ComunicWeb.components.menuBar.notAuthenticated = {
|
||||
|
||||
loginForm.onsubmit = function(){
|
||||
//Try to login user; in case of failure redirect to login page
|
||||
//TODO : implement
|
||||
//In case of error
|
||||
ComunicWeb.common.page.openPage("login", {
|
||||
loginFailedMessage: true,
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -37,6 +42,7 @@ ComunicWeb.components.menuBar.notAuthenticated = {
|
||||
emailInput.className = "form-control";
|
||||
emailInput.placeholder = "Email address";
|
||||
emailInput.type = "email";
|
||||
emailInput.value = ComunicWeb.components.mailCaching.get();
|
||||
|
||||
//Add password formGroup
|
||||
var passwordFormGroup = createElem("div", loginForm);
|
||||
|
Reference in New Issue
Block a user