mxstbr / login-flow

:key: A login/register flow built with React&Redux
https://loginflow.mxstbr.com
MIT License
1.6k stars 215 forks source link

How to set a real URL? #35

Closed yarnball closed 7 years ago

yarnball commented 7 years ago

Hi,

I may have missed this- seems a basic question. I would like to use this with an actual server. So how would i change the it so it passes the username/password to a URL instead? Thanks

mxstbr commented 7 years ago

Replace this import with your favorite XHR request library, for example xhr:

-import request from './fakeRequest';
+import request from 'xhr';

Change the request.post calls in that file to use your real URL:

-request.post('/login')
+request.post('myserver.com/login')