CiderCS3398 / CS3398-Cider-S2017

CS3398 Team Github
0 stars 2 forks source link

Integrate Login Script with Front End Page #86

Open stt19 opened 7 years ago

stt19 commented 7 years ago

This will require the login page to be somewhat done. I will create a handler class that runs the login script and receives a response. The handler will link up with the input text fields and "login" button.

stt19 commented 7 years ago
screen shot 2017-04-23 at 8 31 55 pm

Above is a database on my localhost. The test I'm running is working with its username and password values.

screen shot 2017-04-23 at 8 31 58 pm screen shot 2017-04-23 at 8 32 12 pm screen shot 2017-04-23 at 8 32 35 pm screen shot 2017-04-23 at 8 32 44 pm

The above are test cases I did to make sure all the appropriate combinations returned the correct results.

stt19 commented 7 years ago

I updated the login.php script to match the new code I made for that example. It can be found here: https://github.com/CiderCS3398/CS3398-Cider-S2017/blob/Develop/Database/login.php

Currently, the app will not run in Android Studio for me or Christian, so I cannot integrate it yet. Additionally, I cannot test it with our actual database because I do not know the connection information. So for now, I will leave this issue open and work on something else.

stt19 commented 7 years ago

I was able to complete this issue using a database hosted by the CS Department. I will merge my code after discussing with the team if they are alright with that right now. It is completed though, so I will complete this issue.

stt19 commented 7 years ago

The changes to our app can be found in this commit, specifically the getData() method on line 355: https://github.com/CiderCS3398/CS3398-Cider-S2017/commit/a7c9a475e633fca4d8dc6de8cd896609e523ac4d