tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/259-best-practice-login-logout-infrustructureRobotlegs: Discussion 2018-10-18T16:35:16Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/26821442010-08-24T15:00:59Z2010-08-24T15:02:47Zbest practice - login logout infrustructure <div><p>I guess I'd do it like this: (pseudo code)</p>
<p>LoginFormView.onSubmitClicked { dispatchEvent(SUBMIT, credentials) }</p>
<p>LoginFormMediator.view_onSubmit { dispatch(LoginEvent.LOGIN_ATTEMPT, credentials) }</p>
<p>LoginAttemptCommand.execute { userService.login(credentials) }</p>
<p>UserService.onLoginSuccess { dispatch(LoginEvent.LOGIN_SUCCESS) }</p>
<p>LoginFormMediator.onLoginSuccess { view.success() }</p>
<p>For login of course. Is that what you meant?</p></div>Abel de Beertag:robotlegs.tenderapp.com,2009-10-18:Comment/26821442010-08-24T15:23:38Z2010-08-24T15:23:38Zbest practice - login logout infrustructure <div><p>just what i need thanks</p></div>Nikos