dotNetify-react-native-demo icon indicating copy to clipboard operation
dotNetify-react-native-demo copied to clipboard

(Question) Decision to make LoginScreen a standard form?

Open skyleraustin opened this issue 8 years ago • 2 comments

What was the basis of the decision to make the login screen a standard form post with custom middleware to inspect the HTTP method and URL, rather than being a Dotnetify ViewModel on the backend? I am also noticing that the login screen is the bail-out / error handling page on the client side, so I can assume it was necessary to have a page that the client could rest on if the socket connections were not working as expected. Is that the case? Any advice you would provide to me if I preferred to make Login a Dotnetify ViewModel?

skyleraustin avatar Nov 05 '18 17:11 skyleraustin

It needs to communicate with an auth server through REST API; it's just easier to do this from the client-side and not involving a back-end view model.

dsuryd avatar Nov 05 '18 18:11 dsuryd

Understood. Thank you

skyleraustin avatar Nov 06 '18 06:11 skyleraustin