Use Existing Website Login Username/Pass to Access App Through App Login

220 views
Skip to first unread message

KLoughran

unread,
May 21, 2015, 11:15:05 AM5/21/15
to mitappinv...@googlegroups.com
I have a website setup where users can register, log in, update their profile, all the typical stuff. I have created an app in App Inventor with a login page to access the other screens in the app. At the moment, you can only log in to the app using a fixed username/pass that is set in the blocks of the login screen.

What I'd like to do is be able to log in to my app using the username/pass that is set up on my website and stored on a database on my server. That way I'd only need one username/pass to access the app or the website.

I have found tutorials on how to populate a text field from a database, how to write to a database, how to update a database, but I can't seem to find anything that shows you how to cross reference login credentials in the app against stored data from a database on my website.

Can anyone either walk me through this, link me to tutorial, or point me in the right direction?

Thanks.

Taifun

unread,
May 21, 2015, 11:28:10 AM5/21/15
to mitappinv...@googlegroups.com
What I'd like to do is be able to log in to my app using the username/pass that is set up on my website and stored on a database on my server. 
I'm assuming, you are using a MySQL database?
just do a select statement to get/check the user information...
see also
Taifun

KLoughran

unread,
May 21, 2015, 2:54:53 PM5/21/15
to mitappinv...@googlegroups.com
Yes I am using MySQL.

Thanks for the tutorial link. I've been trying to figure it out and I can't seem to figure out how to integrate it into my login. I'm new to this, so I'm not too experienced in getting these things to work.

I tried my hand at getting that link to work with what I have going on presently, but I'm not sure what to do. Here is what I have now:



Don't mind the error, that's just because I duplicated that block to tweak it. I have another initialize block that has to do with the tinydb check box, otherwise that's it.

Would you mind walking me through this a bit to integrating the query blocks into my login?


Thanks.


Taifun

unread,
May 21, 2015, 6:39:45 PM5/21/15
to mitappinv...@googlegroups.com
if you want to use my example, the first step is to get my example running together with your server without modifications
the second step is to add the blocks into your app and adjust it to your needs
so my recommendation is: start with the first step!
Taifun
Reply all
Reply to author
Forward
0 new messages