18 lines
425 B
JavaScript
18 lines
425 B
JavaScript
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
|
|
|
export default Ember.Controller.extend(ModalFunctionality, {
|
|
emailSent: false,
|
|
|
|
onShow() {
|
|
this.set("emailSent", false);
|
|
},
|
|
|
|
actions: {
|
|
sendActivationEmail: function() {
|
|
Discourse.ajax('/users/action/send_activation_email', {data: {username: this.get('username')}, type: 'POST'});
|
|
this.set('emailSent', true);
|
|
}
|
|
}
|
|
|
|
});
|