17 lines
411 B
JavaScript
17 lines
411 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
classNames: ['invitation-form'],
|
|
|
|
actions: {
|
|
acceptInvitation() {
|
|
var model = this.get('model');
|
|
model.set('passwordConfirmation', model.get('password'));
|
|
model.save().then( () => {
|
|
this.get('session').authenticate('authenticator:devise', model.get('email'), model.get('password') );
|
|
});
|
|
}
|
|
}
|
|
|
|
});
|