EricaSkerrett / bme590final

Final project (image processing)
GNU General Public License v3.0
0 stars 1 forks source link

Sep52/create client #38

Closed sputney13 closed 5 years ago

sputney13 commented 5 years ago

@RoujiaW post_create_user(user_email) in client.py (line 6) is what you'll need for the create new user button POST, get_returning_user(user_email) in client.py (line 23) is what you'll need for the returning user button GET.

In get_returning_user, what is returned is a dict with user_email and error_message keys. What I would do for the GUI, is check to see if error_message = 'None', and if it doesn't, have the error message print as a pop-up. If error message is not 'None', then you can just store the user_email key globally and proceed to the next window.

Got it to work with testing (at the bottom) and feel free to test it yourself as well!