This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Login prompt in my App for Admin user
#1
Hello,
I want to integrate login prompt for admin user in my app can you help me with this?
(I want to check admin password)
Do you have any example??

(request.username is not goob because must be enabled password for APP)

I've tried something like this:  (is it right way?)

Code:
require('json')
require('socket.http')

 password = 'admin'

res, err = socket.http.request('http://192.168.0.10/apps/request.lp?action=check&password='..password)
--log(res, err)
log(json.pdecode(res))

Thank you.
Reply
#2
This will work, just change IP to 127.0.0.1 in your request so you don't need to know Ethernet IP address.
Reply


Forum Jump: