Publish signed up message

This commit is contained in:
Michael Schmatz 2014-11-21 17:18:02 -05:00
parent 074d9f33c2
commit 1d52562070
2 changed files with 3 additions and 0 deletions

View file

@ -8,6 +8,8 @@ module.exports =
'auth:logging-in-with-facebook': c.object {}
'auth:signed-up': c.object {}
'auth:logging-out': c.object {}
'auth:logged-in-with-facebook': c.object {title: 'Facebook logged in', description: 'Published when you successfully logged in with Facebook', required: ['response']},

View file

@ -90,6 +90,7 @@ module.exports = class AuthModal extends ModalView
userObject.emails.generalNews.enabled = subscribe
res = tv4.validateMultiple userObject, User.schema
return forms.applyErrorsToForm(@$el, res.errors) unless res.valid
Backbone.Mediator.publish "auth:signed-up"
window.tracker?.trackEvent 'Finished Signup'
@enableModalInProgress(@$el)
createUser userObject, null, window.nextLevelURL