mirror of
https://github.com/Astatin3/Polyboard.git
synced 2026-06-09 00:28:07 -06:00
Finally done!
This commit is contained in:
+4
-20
@@ -14,29 +14,13 @@
|
||||
</section>
|
||||
|
||||
<script>
|
||||
//let socket = io()
|
||||
usernamebox = document.getElementById('usernamebox')
|
||||
passwordbox = document.getElementById('passwordbox')
|
||||
|
||||
function submit(){
|
||||
const usernamebox = utils.getel('usernamebox')
|
||||
const passwordbox = utils.getel('passwordbox')
|
||||
|
||||
authLogin(usernamebox.value, passwordbox.value)
|
||||
}
|
||||
|
||||
|
||||
// function submit() {
|
||||
// time = (new Date().getTime())
|
||||
|
||||
// hashpacket = usernamebox.value+sha256(passwordbox.value).toUpperCase()+time
|
||||
|
||||
// packet = {
|
||||
// data: sha256(hashpacket),
|
||||
// time: time
|
||||
// }
|
||||
// socket.emit('authreq', JSON.stringify(packet))
|
||||
// //alert(sha256(passwordbox.value))
|
||||
// //passwordbox.value = sha256(passwordbox.value)
|
||||
// }
|
||||
|
||||
|
||||
window.main = ()=>{}
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user