Simplify the API routes
This commit is contained in:
parent
c9993e2aba
commit
3b56ba845c
@ -20,7 +20,7 @@ class auth:
|
|||||||
self.smtpconfig = globalvar.smtpconfig
|
self.smtpconfig = globalvar.smtpconfig
|
||||||
|
|
||||||
def register(self, params):
|
def register(self, params):
|
||||||
APIADDR = "/api/auth/registration/register/:roles"
|
APIADDR = "/api/auth/register/:roles"
|
||||||
loggorilla.prcss(APIADDR, "Define parameters")
|
loggorilla.prcss(APIADDR, "Define parameters")
|
||||||
response = {}
|
response = {}
|
||||||
captcha = params["captcha" ]
|
captcha = params["captcha" ]
|
||||||
@ -92,7 +92,7 @@ class auth:
|
|||||||
return response
|
return response
|
||||||
|
|
||||||
def resend(self, params):
|
def resend(self, params):
|
||||||
APIADDR = "/api/auth/registration/resend"
|
APIADDR = "/api/auth/resend"
|
||||||
loggorilla.prcss(APIADDR, "Define parameters")
|
loggorilla.prcss(APIADDR, "Define parameters")
|
||||||
response = {}
|
response = {}
|
||||||
email = params["email"].lower()
|
email = params["email"].lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user