mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
dafda3907a
closes #2412 - Updated the reset route to accept token parameter and hand it over to the controller. - Added ResetController which handles the submit action and the button disabled state. - Added reset action to the user model to handle ajax request. - Updated reset template. - Added fixtures to test reset API action. - Fixed password variable names to camel cased style (e.g. newpassword -> newPassword).
11 lines
264 B
JavaScript
11 lines
264 B
JavaScript
import styleBody from 'ghost/mixins/style-body';
|
|
|
|
var ResetRoute = Ember.Route.extend(styleBody, {
|
|
classNames: ['ghost-reset'],
|
|
setupController: function (controller, params) {
|
|
controller.token = params.token;
|
|
}
|
|
});
|
|
|
|
export default ResetRoute;
|