Skip to content

Hooks Accounts.onLogin/onLoginFailure should be available on client #3572

Closed
@jakozaur

Description

@jakozaur

Currently Accounts hooks onLogin and onLoginFailure are available only on server.

I am trying to add logic that would move user to certain page on login and it is hard to implement without the hook.

However, it looks logically that this methods should be isomorphic on client. This is one of the core Meteor design philosophy.

Happy to try to implement myself, but would like to get blessing from MDG. Do I sound reasonable? 😄

The only tricky part is that the attempt object would be a bit different on server vs. client (user and connection object). Though I would note it in documentation, I wouldn't worry about it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions