mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-04 22:47:26 +08:00
[+] Allow register-card via http
This commit is contained in:
@@ -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) }
|
||||||
|
|||||||
Reference in New Issue
Block a user