mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 04:22:38 +00:00
[+] Allow register-card via http
This commit is contained in:
parent
11ab81a484
commit
df3bd6fbec
@ -31,7 +31,7 @@ class Frontier(
|
||||
ftk.checkFtk()
|
||||
|
||||
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"
|
||||
|
||||
val card = async { cardService.registerByAccessCode(accessCode) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user