mirror of
https://github.com/AltarikMC/Launcher
synced 2025-12-16 12:13:50 +00:00
Refactored project + added login to mojang + launch can start the modded game + added a font
This commit is contained in:
18
include/login.js
Normal file
18
include/login.js
Normal file
@@ -0,0 +1,18 @@
|
||||
user = document.querySelector('#nickname')
|
||||
password = document.querySelector('#password')
|
||||
|
||||
document.querySelector('#login-form').addEventListener("submit", (e) => {
|
||||
e.preventDefault()
|
||||
if(user.value){
|
||||
ipcRenderer.send("login", {
|
||||
user: user.value,
|
||||
pass: password.value
|
||||
})
|
||||
}else{
|
||||
ipcRenderer.send("notification", {
|
||||
title: "error",
|
||||
body: "Veuillez entrer des identifiants"
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user