+
{getLangText('Reset your password')}
-
+
@@ -99,19 +106,26 @@ let PasswordRequestResetForm = React.createClass({
});
let PasswordResetForm = React.createClass({
+ propTypes: {
+ email: React.PropTypes.string,
+ token: React.PropTypes.string
+ },
+
mixins: [Router.Navigation],
- getFormData(){
+ getFormData() {
return {
email: this.props.email,
token: this.props.token
};
},
+
handleSuccess() {
this.transitionTo('pieces');
let notification = new GlobalNotificationModel(getLangText('password successfully updated'), 'success', 10000);
GlobalNotificationActions.appendGlobalNotification(notification);
},
+
render() {
return (
}>
-
+
{getLangText('Reset the password for')} {this.props.email}
-
+
diff --git a/js/components/register_piece.js b/js/components/register_piece.js
index 20826b7d..cdea0247 100644
--- a/js/components/register_piece.js
+++ b/js/components/register_piece.js
@@ -23,7 +23,6 @@ import GlobalNotificationActions from '../actions/global_notification_actions';
import Property from './ascribe_forms/property';
import PropertyCollapsible from './ascribe_forms/property_collapsible';
import RegisterPieceForm from './ascribe_forms/form_register_piece';
-//import FormPropertyHeader from './ascribe_forms/form_property_header';
import LoginContainer from './login_container';
import SlidesContainer from './ascribe_slides_container/slides_container';