content: import React from 'react';
  import Alert from 'react-s-alert';
  import ChangePasswordForm from '../components/change_password';
  
  class ChangePassword extends React.Component {
    handleSubmit(values) {
      console.log(values);
      Accounts.changePassword(values.oldPassword, values.newPassword, function(error) {
        if (error) {
          Alert.error(error.reason, {
            position: 'bottom-left'
          });
        } else {
          Alert.success('成功修改密码', {
            position: 'bottom-left'
          });
        }
      });
    }
    render() {
      return (
        <ChangePasswordForm onSubmit={this.handleSubmit}/>
      );
    }
  }
  
  export default ChangePassword;
  