Basically, title
My first idea was to check [coronium].[cc_users_pw_reset] table if record already exists and sent_on data is less than 15 minutes from now. But when I’m trying to access coronium database from server side I got error:
Error occured:Unauthorized database
Any way to implement this?
My current code:
local record, err = core.mysql.selectOne( "coronium", { tbl = "cc\_users\_pw\_reset", where = {email = params.email}, } ) if (err) then print("error occured", err) return core.error(err) else --check for existing link goes here end local res, err = core.users.sendPasswordResetLink(...)