mirror of https://github.com/hykilpikonna/AquaDX
[+] Allow register-card via http
parent
11ab81a484
commit
df3bd6fbec
|
@ -31,7 +31,7 @@ class Frontier(
|
||||||
ftk.checkFtk()
|
ftk.checkFtk()
|
||||||
|
|
||||||
if (accessCode.length != 20) 400 - "Invalid access code"
|
if (accessCode.length != 20) 400 - "Invalid access code"
|
||||||
if (!accessCode.startsWith("9900")) 400 - "Frontier access code must start with 9900"
|
// if (!accessCode.startsWith("9900")) 400 - "Frontier access code must start with 9900"
|
||||||
if (async { cardService.cardRepo.findByLuid(accessCode) }.isPresent) 400 - "Card already registered"
|
if (async { cardService.cardRepo.findByLuid(accessCode) }.isPresent) 400 - "Card already registered"
|
||||||
|
|
||||||
val card = async { cardService.registerByAccessCode(accessCode) }
|
val card = async { cardService.registerByAccessCode(accessCode) }
|
||||||
|
|
Loading…
Reference in New Issue