We know we can send lectora variables to our cgi scripts. Also, there must be some way to get data from database to lectora. Basically, I need to create a login page in lectora. In which there will be two textbox and one submit button. First textbox will be Username which will be auto-filled from database as soon as lectora page loads. The second textbox would be password. When user enters password, it should check that password with the correct password in database. If the password is correct and user clicks on submit button, only when it should go to next page.
Any suggestions? I have lectora publisher. And I publish to HTML only.
Or is there any other way to do some kinda login functionality with lectora?
It’s easier to just create the login page as a separate html document and insert it on the slide as External HTML object. If the user is authorised, execute TrivNextPage() in the parent window and Lectora will jump forward.
Of course, this is as insecure as any client-side solution. If you need a secure option (e.g. you have paying customers), use e.g. Scorm Cloud.