Login page? Can anyone help

Is it possible to create a user login page (email and password) in a Corona app?

I have a file that has some info stored in it (email and password column, and some test data) and I can access it and print data to console.

But how can I get a user to input on the screen and for Corona to check the data and authorise it?

I have been looking on the web for days and no luck…

Can anyone help?

Cheers

Depends on how you want to authorize the input. 

If there are separate usernames/passwords and they will continue to be added after the app goes live, then you should create a secure web service that the app can communicate with.  You send the login information to the web service over HTTPS and the web service returns a true/false to let the app know whether it has been authorized and then you can move forward based on that.

This will require you to set up secure web hosting, maintain a database with the usernames/passwords, and write a service (something simple in PHP would probably suffice) that does the checking and lets the app know whether the entered information is valid.

Depends on how you want to authorize the input. 

If there are separate usernames/passwords and they will continue to be added after the app goes live, then you should create a secure web service that the app can communicate with.  You send the login information to the web service over HTTPS and the web service returns a true/false to let the app know whether it has been authorized and then you can move forward based on that.

This will require you to set up secure web hosting, maintain a database with the usernames/passwords, and write a service (something simple in PHP would probably suffice) that does the checking and lets the app know whether the entered information is valid.

Hi thegdog, if I submit login details from corona built app using native object to a https secure connection can someone can intercept data? I assumed once corona do a network.request to an https server plain format login details are secured. Do I need to encrypt user name and password before I post to remote SSL server. 

How secure it is to save login details in the device in a json format.

Thank you for your help.

Well, I don’t really know that anything is secure any more.  But I do believe that Corona can communicate over HTTPS providing the standard level of protection that HTTPS offers.  The team at Corona can confirm that.

Unless you encrypt the data, I would not save any login details on the device in any format.  If someone were to lose their phone, someone could easily connect the phone to a computer and use any of the commercially available products that let you view data on a phone and look at the JSON file you saved and get the data.

I assume that if something is meant to be secure enough to require HTTPS that you should be encrypting things as well.

Hi thegdog, if I submit login details from corona built app using native object to a https secure connection can someone can intercept data? I assumed once corona do a network.request to an https server plain format login details are secured. Do I need to encrypt user name and password before I post to remote SSL server. 

How secure it is to save login details in the device in a json format.

Thank you for your help.

Well, I don’t really know that anything is secure any more.  But I do believe that Corona can communicate over HTTPS providing the standard level of protection that HTTPS offers.  The team at Corona can confirm that.

Unless you encrypt the data, I would not save any login details on the device in any format.  If someone were to lose their phone, someone could easily connect the phone to a computer and use any of the commercially available products that let you view data on a phone and look at the JSON file you saved and get the data.

I assume that if something is meant to be secure enough to require HTTPS that you should be encrypting things as well.