Refactor user lockout/pw reset
This commit is contained in:
parent
ec597cd419
commit
079b2c59f6
5 changed files with 49 additions and 32 deletions
18
app/pods/users/requestlockouthelp/lockout-form/component.js
Normal file
18
app/pods/users/requestlockouthelp/lockout-form/component.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
const { Component } = Ember;
|
||||
|
||||
export default Component.extend({
|
||||
email: null,
|
||||
"on-submit": null,
|
||||
|
||||
actions: {
|
||||
save: function() {
|
||||
return this.attrs["on-submit"](this.get('email'));
|
||||
},
|
||||
|
||||
emailDidChange: function(value) {
|
||||
this.set('email', value);
|
||||
},
|
||||
}
|
||||
});
|
Reference in a new issue