Skip to content

Events Emitted in the system

amrdraz edited this page Jan 2, 2015 · 1 revision

Events

Kodr uses an observer model to decouple and notify other modules of actions on the system

Emits

  • on req /signup a user.signup event is emitted passing user.
  • on req /verify a user.verified event is emitted passing user.

On

In events/user.js

  • on user.signup a verification email is sent
  • on user.signup an email is sent to the admin notifying him that a new user was created

In events/activity.js

  • on user.signup an activity is created with action "signedup" and the user as subject
  • on user.verified an activity is created with action "verified" and the user as subject
Clone this wiki locally