refactor: schema modularization

This commit is contained in:
Sérgio Salgado 2021-01-22 18:19:52 +00:00 committed by Josh Harvey
parent d9e3a9e61f
commit 82b5db6908
35 changed files with 2423 additions and 685 deletions

View file

@ -21,7 +21,7 @@ function validateOTP (otp) {
.catch(() => ({ success: false, expired: false }))
}
function register (otp, ua, ip) {
function register (otp, ua, ip) {
return validateOTP(otp)
.then(r => {
if (!r.success) return r