-
Notifications
You must be signed in to change notification settings - Fork 0
/
3.415b45a00fb0c28b21e2.js.map
1 lines (1 loc) · 17.5 KB
/
3.415b45a00fb0c28b21e2.js.map
1
{"version":3,"sources":["webpack:///3.415b45a00fb0c28b21e2.js","webpack:///./client/src/components/auth/resetPassword.js"],"names":["webpackJsonp","1238","module","exports","__webpack_require__","_interopRequireWildcard","obj","__esModule","newObj","key","Object","prototype","hasOwnProperty","call","default","_interopRequireDefault","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","mapStateToProps","_ref","auth","errorMsg","error","status","defineProperty","_createClass","defineProperties","target","props","i","length","descriptor","protoProps","staticProps","_react","_react2","_reduxForm","_reactRedux","_actions","actions","_reactRouter","_reactFacebookLogin","_types","_widgets","ResetPassword","_Component","this","getPrototypeOf","data","password","password2","pathname","location","token","split","pop","resetPassword","console","log","authReset","verifyToken","SUCCEED_TO_RESET_PASSWORD","createElement","className","src","Link","to","SUCCESS_TO_VERIFY_TOKEN","handleSubmit","onSubmit","handleFormSubmit","bind","Field","type","name","component","placeholder","required","Loader","style","margin","width","marginTop","renderContent","Component","reduxForm","form","connect"],"mappings":"AAAAA,cAAc,EAAE,IAEVC,KACA,SAASC,EAAQC,EAASC,GAEhC,YAiCA,SAASC,GAAwBC,GAAO,GAAIA,GAAOA,EAAIC,WAAc,MAAOD,EAAc,IAAIE,KAAa,IAAW,MAAPF,EAAe,IAAK,GAAIG,KAAOH,GAAWI,OAAOC,UAAUC,eAAeC,KAAKP,EAAKG,KAAMD,EAAOC,GAAOH,EAAIG,GAAgC,OAAtBD,GAAOM,QAAUR,EAAYE,EAElQ,QAASO,GAAuBT,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQQ,QAASR,GAEvF,QAASU,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,QAASC,GAA2B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EAAatB,KAAKwB,iBAAiBC,KAAKzB,OAClDiB,UAAU,UACV5B,EAAArC,QAAAgE,cAAA,OAAKC,UAAU,cACX5B,EAAArC,QAAAgE,cAAA1B,EAAAoC,OACIC,KAAK,WACLC,KAAK,WACLC,UAAU,QACVZ,UAAU,cACVa,YAAY,YACZC,eAGR1C,EAAArC,QAAAgE,cAAA,OAAKC,UAAU,cACX5B,EAAArC,QAAAgE,cAAA1B,EAAAoC,OACIC,KAAK,WACLC,KAAK,YACLC,UAAU,QACVZ,UAAU,cACVa,YAAY,sBACZC,eAER1C,EAAArC,QAAAgE,cAAA,UAAQW,KAAK,SAASV,UAAU,mBAAhC,uBAKZ,MACI5B,GAAArC,QAAAgE,cAAAnB,EAAAmC,QAAQC,OAASC,OAAQ,OAAQC,MAAO,OAAQC,UAAW,aDgF/DzF,IAAK,SACLmB,MAAO,WC7EP,MACIuB,GAAArC,QAAAgE,cAAA,OAAKC,UAAU,mBACX5B,EAAArC,QAAAgE,cAAA,OAAKC,UAAU,eACVjB,KAAKqC,sBDuFfvC,GACTV,EAAOkD,UC1ETxC,MAAgBR,EAAAiD,YACZC,KAAM,iBACP,KAAM/C,GAASK,GAClBA,KAAgBP,EAAAkD,SAAQrE,EAAiBqB,GAASK,GDuFlDzD,EAAQW,QCrFO8C","file":"3.415b45a00fb0c28b21e2.js","sourcesContent":["webpackJsonp([3,6],{\n\n/***/ 1238:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = __webpack_require__(0);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reduxForm = __webpack_require__(14);\n\nvar _reactRedux = __webpack_require__(3);\n\nvar _actions = __webpack_require__(7);\n\nvar actions = _interopRequireWildcard(_actions);\n\nvar _reactRouter = __webpack_require__(5);\n\nvar _reactFacebookLogin = __webpack_require__(105);\n\nvar _reactFacebookLogin2 = _interopRequireDefault(_reactFacebookLogin);\n\nvar _auth = __webpack_require__(129);\n\nvar _types = __webpack_require__(17);\n\nvar _widgets = __webpack_require__(16);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ResetPassword = function (_Component) {\n _inherits(ResetPassword, _Component);\n\n function ResetPassword(props) {\n _classCallCheck(this, ResetPassword);\n\n return _possibleConstructorReturn(this, (ResetPassword.__proto__ || Object.getPrototypeOf(ResetPassword)).call(this, props));\n }\n\n _createClass(ResetPassword, [{\n key: 'handleFormSubmit',\n value: function handleFormSubmit(data) {\n if (data.password == data.password2) {\n var pathname = this.props.location.pathname;\n var token = pathname.split('/').pop();\n this.props.resetPassword({\n token: token,\n password: data.password\n });\n } else {\n console.log('password does not matched');\n }\n }\n }, {\n key: 'componentWillMount',\n value: function componentWillMount() {\n this.props.authReset();\n var pathname = this.props.location.pathname;\n var token = pathname.split('/').pop();\n // verify token\n this.props.verifyToken(token);\n // gegenrate the form\n // let user resetPassword\n }\n }, {\n key: 'renderContent',\n value: function renderContent() {\n if (this.props.status === _types.SUCCEED_TO_RESET_PASSWORD) {\n return _react2.default.createElement(\n 'span',\n { className: 'single_icon' },\n _react2.default.createElement('img', { src: 'http://wfarm4.dataknet.com/static/resources/icons/set52/a47f4a05.png' }),\n _react2.default.createElement(\n 'div',\n { className: 'title' },\n 'Password resetted'\n ),\n _react2.default.createElement(\n 'div',\n { className: 'discriptionTxt' },\n 'Your password has been resetted successfully.'\n ),\n _react2.default.createElement('br', null),\n _react2.default.createElement(\n _reactRouter.Link,\n { to: '/auth/signin' },\n _react2.default.createElement(\n 'button',\n { className: 'btn btn-primary' },\n 'Login Now'\n )\n )\n );\n }\n if (this.props.status === _types.SUCCESS_TO_VERIFY_TOKEN) {\n var handleSubmit = this.props.handleSubmit;\n\n return _react2.default.createElement(\n 'span',\n null,\n _react2.default.createElement(\n 'div',\n { className: 'title' },\n 'Set Up Your New Password'\n ),\n _react2.default.createElement(\n 'div',\n { className: 'discriptionTxt' },\n 'Your YEAH account is your portal to all things YEAH: your resources, resume, career training courses, volunteer resources, and more!'\n ),\n _react2.default.createElement(\n 'form',\n {\n onSubmit: handleSubmit(this.handleFormSubmit.bind(this)),\n className: 'col-xs' },\n _react2.default.createElement(\n 'div',\n { className: 'form-group' },\n _react2.default.createElement(_reduxForm.Field, {\n type: 'password',\n name: 'password',\n component: 'input',\n className: 'yeah-input ',\n placeholder: 'Passwrod*',\n required: true\n })\n ),\n _react2.default.createElement(\n 'div',\n { className: 'form-group' },\n _react2.default.createElement(_reduxForm.Field, {\n type: 'password',\n name: 'password2',\n component: 'input',\n className: 'yeah-input ',\n placeholder: 'Confirmed Password*',\n required: true })\n ),\n _react2.default.createElement(\n 'button',\n { type: 'submit', className: 'btn btn-primary' },\n 'Reset My Password'\n )\n )\n );\n }\n return _react2.default.createElement(_widgets.Loader, { style: { margin: 'auto', width: '30px', marginTop: '50px' } });\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2.default.createElement(\n 'div',\n { className: 'auth-card notab' },\n _react2.default.createElement(\n 'div',\n { className: 'formSection' },\n this.renderContent()\n )\n );\n }\n }]);\n\n return ResetPassword;\n}(_react.Component);\n\nfunction mapStateToProps(_ref) {\n var auth = _ref.auth;\n\n return {\n errorMsg: auth.error,\n status: auth.status\n };\n}\n\nResetPassword = (0, _reduxForm.reduxForm)({\n form: 'resetPassword'\n}, null, actions)(ResetPassword);\nResetPassword = (0, _reactRedux.connect)(mapStateToProps, actions)(ResetPassword);\n\nexports.default = ResetPassword;\n\n/***/ }\n\n});\n\n\n// WEBPACK FOOTER //\n// 3.415b45a00fb0c28b21e2.js","import React, {Component} from 'react';\nimport {reduxForm, Field} from 'redux-form';\nimport { connect } from 'react-redux';\nimport * as actions from '../../actions';\nimport { Link } from 'react-router';\nimport FacebookLogin from 'react-facebook-login';\nimport { signUserInWithFacebook } from '../../actions/auth';\nimport { EMAIL_SENT } from '../../actions/types';\nimport { hashHistory } from 'react-router';\nimport { SUCCESS_TO_VERIFY_TOKEN, FAIL_TO_VERIFY_TOKEN, SUCCEED_TO_RESET_PASSWORD } from '../../actions/types';\nimport { Loader } from '../widgets';\n\nclass ResetPassword extends Component {\n constructor(props) {\n super(props);\n };\n handleFormSubmit(data) {\n if (data.password == data.password2) {\n const pathname = this.props.location.pathname;\n const token = pathname.split('/').pop();\n this.props.resetPassword({\n token,\n password: data.password\n });\n }else{\n console.log('password does not matched');\n }\n }\n componentWillMount(){\n this.props.authReset();\n const pathname = this.props.location.pathname;\n const token = pathname.split('/').pop();\n // verify token\n this.props.verifyToken(token);\n // gegenrate the form\n // let user resetPassword\n }\n renderContent(){\n if(this.props.status === SUCCEED_TO_RESET_PASSWORD) {\n return (\n <span className=\"single_icon\">\n <img src=\"http://wfarm4.dataknet.com/static/resources/icons/set52/a47f4a05.png\" />\n <div className=\"title\">Password resetted</div>\n <div className=\"discriptionTxt\">\n Your password has been resetted successfully.\n </div>\n <br/>\n <Link to=\"/auth/signin\">\n <button className=\"btn btn-primary\">Login Now</button>\n </Link>\n </span>\n )\n\n }\n if(this.props.status === SUCCESS_TO_VERIFY_TOKEN){\n const {handleSubmit} = this.props;\n return (<span>\n <div className=\"title\">Set Up Your New Password</div>\n <div className=\"discriptionTxt\">Your YEAH account is your portal to all things YEAH: your resources, resume, career training courses, volunteer resources, and more!</div>\n <form\n onSubmit={handleSubmit(this.handleFormSubmit.bind(this))}\n className=\"col-xs\">\n <div className=\"form-group\">\n <Field\n type='password'\n name=\"password\"\n component=\"input\"\n className=\"yeah-input \"\n placeholder=\"Passwrod*\"\n required\n />\n </div>\n <div className=\"form-group\">\n <Field\n type='password'\n name=\"password2\"\n component=\"input\"\n className=\"yeah-input \"\n placeholder=\"Confirmed Password*\"\n required/>\n </div>\n <button type=\"submit\" className=\"btn btn-primary\">Reset My Password</button>\n </form>\n </span>\n );\n }\n return (\n <Loader style={{ margin: 'auto', width: '30px', marginTop: '50px'}} />\n )\n }\n render() {\n return (\n <div className=\"auth-card notab\">\n <div className=\"formSection\">\n {this.renderContent()}\n </div>\n </div>\n );\n }\n}\n\nfunction mapStateToProps({auth}) {\n return {\n errorMsg: auth.error,\n status: auth.status\n }\n}\n\nResetPassword = reduxForm({\n form: 'resetPassword'\n}, null, actions)(ResetPassword);\nResetPassword = connect(mapStateToProps, actions)(ResetPassword);\n\nexport default ResetPassword;\n\n\n// WEBPACK FOOTER //\n// ./client/src/components/auth/resetPassword.js"],"sourceRoot":""}