Restructured files, made build script
This commit is contained in:
14
typescript/dredgepos.authenticate.ts
Normal file
14
typescript/dredgepos.authenticate.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
let showLoginBox = () => showVirtualNumpad('Enter Login Code', 6, true, false, false, authenticate)
|
||||
|
||||
let authenticate = (input : string) => {
|
||||
let login = ajaxSync('/login/authenticateClerk', input)
|
||||
if(login === 'success'){
|
||||
location.assign('/floorplan/')
|
||||
}
|
||||
else
|
||||
showLoginBox()
|
||||
}
|
||||
|
||||
$(() => {
|
||||
showLoginBox()
|
||||
})
|
||||
Reference in New Issue
Block a user