Tidied up login page/navbar.

This commit is contained in:
rainbow napkin 2024-12-28 15:55:03 -05:00
parent 478edeeddf
commit 3eddd0ea5b
5 changed files with 21 additions and 2 deletions

View file

@ -13,12 +13,16 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.*/
h2{
text-align: center;
}
form{
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5em;
margin: 5% 17%;
margin: 0 17%;
}
.login-page-prompt{

View file

@ -20,6 +20,12 @@ async function navbarLogin(event){
var user = document.querySelector("#username-prompt").value;
var pass = document.querySelector("#password-prompt").value;
//If no user or pass is presented
if(user == "" || pass == ""){
//Go to login page
window.location = '/login'
}
utils.ajax.login(user, pass);
}
}