best practice - login logout infrustructure

Nikos 's Avatar

Nikos

24 Aug, 2010 01:11 PM

How do you guys organise login & logout infrustructure in RL?

  1. 1 Posted by Abel de Beer on 24 Aug, 2010 03:00 PM

    Abel de Beer's Avatar

    I guess I'd do it like this: (pseudo code)

    LoginFormView.onSubmitClicked { dispatchEvent(SUBMIT, credentials) }

    LoginFormMediator.view_onSubmit { dispatch(LoginEvent.LOGIN_ATTEMPT, credentials) }

    LoginAttemptCommand.execute { userService.login(credentials) }

    UserService.onLoginSuccess { dispatch(LoginEvent.LOGIN_SUCCESS) }

    LoginFormMediator.onLoginSuccess { view.success() }

    For login of course. Is that what you meant?

  2. 2 Posted by Nikos on 24 Aug, 2010 03:23 PM

    Nikos 's Avatar

    just what i need thanks

  3. Nikos closed this discussion on 24 Aug, 2010 03:23 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac