mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Publish signed up message
This commit is contained in:
parent
074d9f33c2
commit
1d52562070
2 changed files with 3 additions and 0 deletions
|
@ -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']},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue