Password on login & registration

This commit is contained in:
Andrew Revinsky (DART)
2016-09-09 19:03:35 +03:00
parent 12cc48b906
commit 258646a4d6
9 changed files with 227 additions and 160 deletions

View File

@@ -6794,6 +6794,16 @@ webpackJsonp([0,3],{
errors: (0, _readProp2.default)(this.props.auth, 'signIn.errors.email', []),
onChange: this.handleInput.bind(this, "email")
}, this.props.inputProps.email)),
_react2.default.createElement(_Input2.default, _extends({ type: "password",
className: "password-sign-in-email",
label: "Password",
placeholder: "Password",
name: "password",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signIn.form.password', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signIn.errors.password', []),
onChange: this.handleInput.bind(this, "password")
}, this.props.inputProps.password)),
_react2.default.createElement(
_ButtonLoader2.default,
_extends({ loading: (0, _readProp2.default)(this.props.auth, 'signIn.loading', false),
@@ -7036,7 +7046,7 @@ webpackJsonp([0,3],{
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -7087,168 +7097,188 @@ webpackJsonp([0,3],{
var EmailSignUpForm = function (_React$Component) {
_inherits(EmailSignUpForm, _React$Component);
_inherits(EmailSignUpForm, _React$Component);
function EmailSignUpForm() {
_classCallCheck(this, EmailSignUpForm);
function EmailSignUpForm() {
_classCallCheck(this, EmailSignUpForm);
return _possibleConstructorReturn(this, (EmailSignUpForm.__proto__ || Object.getPrototypeOf(EmailSignUpForm)).apply(this, arguments));
}
return _possibleConstructorReturn(this, (EmailSignUpForm.__proto__ || Object.getPrototypeOf(EmailSignUpForm)).apply(this, arguments));
}
_createClass(EmailSignUpForm, [{
key: "getEndpoint",
value: function getEndpoint() {
return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
}
}, {
key: "handleInput",
value: function handleInput(key, val) {
this.props.dispatch((0, _signUp.emailSignUpFormUpdate)(key, val));
}
}, {
key: "handleSubmit",
value: function handleSubmit(event) {
event.preventDefault();
_createClass(EmailSignUpForm, [{
key: "getEndpoint",
value: function getEndpoint() {
return this.props.endpoint || this.props.auth.getIn(["configure", "currentEndpointKey"]) || this.props.auth.getIn(["configure", "defaultEndpointKey"]);
}
}, {
key: "handleInput",
value: function handleInput(key, val) {
this.props.dispatch((0, _signUp.emailSignUpFormUpdate)(key, val));
}
}, {
key: "handleSubmit",
value: function handleSubmit(event) {
event.preventDefault();
var formData = _extends({}, this.props.auth.signUp.form);
this.props.dispatch((0, _signUp.emailSignUp)((0, _formToPayloadMappers.customerInfoMap)(formData)));
}
}, {
key: "render",
value: function render() {
var formData = _extends({}, this.props.auth.signUp.form);
this.props.dispatch((0, _signUp.emailSignUp)((0, _formToPayloadMappers.customerInfoMap)(formData)));
}
}, {
key: "render",
value: function render() {
var disabled = this.props.auth.user.isSignedIn || this.props.auth.signUp.loading;
var disabled = this.props.auth.user.isSignedIn || this.props.auth.signUp.loading;
return _react2.default.createElement(
"form",
{ className: "redux-auth email-sign-up-form clearfix",
onSubmit: this.handleSubmit.bind(this) },
_react2.default.createElement(
_IndexPanel2.default,
{ header: "basic" },
_react2.default.createElement(_Input2.default, { type: "text",
label: "First name",
placeholder: "First name",
className: "email-sign-up-email",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.fname', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.fname', []),
onChange: this.handleInput.bind(this, "fname")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Last name",
placeholder: "Last name",
className: "email-sign-up-email",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.lname', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.lname', []),
onChange: this.handleInput.bind(this, "lname")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Email",
placeholder: "Email",
className: "email-sign-up-email",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.email', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.email', []),
onChange: this.handleInput.bind(this, "email")
})
),
_react2.default.createElement(
_IndexPanel2.default,
{ header: "advanced" },
_react2.default.createElement(_Input2.default, { type: "text",
label: "SSN",
placeholder: "SSN",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.ssn', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.ssn', []),
onChange: this.handleInput.bind(this, "ssn")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Phone",
placeholder: "Phone",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.phoneNumber', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.phoneNumber', []),
onChange: this.handleInput.bind(this, "phoneNumber")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Address 1",
placeholder: "Address 1",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.address1', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.address1', []),
onChange: this.handleInput.bind(this, "address1")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Address 2",
placeholder: "Address 2",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.address2', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.address2', []),
onChange: this.handleInput.bind(this, "address2")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "City",
placeholder: "City",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.city', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.city', {}),
onChange: this.handleInput.bind(this, "city")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "State",
placeholder: "State",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.state', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.state', []),
onChange: this.handleInput.bind(this, "state")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "ZIP",
placeholder: "ZIP",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.zip', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.zip', []),
onChange: this.handleInput.bind(this, "zip")
})
),
_react2.default.createElement(
_ButtonLoader2.default,
{ loading: (0, _readProp2.default)(this.props.auth, 'signUp.loading', false),
type: "submit",
className: "email-sign-up-submit pull-right",
icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "send" }),
disabled: disabled,
onClick: this.handleSubmit.bind(this)
},
"Sign Up"
)
);
}
}]);
return _react2.default.createElement(
"form",
{ className: "redux-auth email-sign-up-form clearfix",
onSubmit: this.handleSubmit.bind(this) },
_react2.default.createElement(
_IndexPanel2.default,
{ header: "basic" },
_react2.default.createElement(_Input2.default, { type: "text",
label: "First name",
placeholder: "First name",
className: "email-sign-up-email",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.fname', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.fname', []),
onChange: this.handleInput.bind(this, "fname")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Last name",
placeholder: "Last name",
className: "email-sign-up-email",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.lname', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.lname', []),
onChange: this.handleInput.bind(this, "lname")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Email",
placeholder: "Email",
className: "email-sign-up-email",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.email', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.email', []),
onChange: this.handleInput.bind(this, "email")
}),
_react2.default.createElement(_Input2.default, { type: "password",
className: "password-sign-in-email",
label: "Password",
placeholder: "Password",
name: "password",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.password', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.password', []),
onChange: this.handleInput.bind(this, "password")
}),
_react2.default.createElement(_Input2.default, { type: "password",
className: "password-sign-in-email",
label: "Confirm password",
placeholder: "Confirm password",
name: "password-confirm",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.passwordConfirm', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.passwordConfirm', []),
onChange: this.handleInput.bind(this, "passwordConfirm")
})
),
_react2.default.createElement(
_IndexPanel2.default,
{ header: "advanced" },
_react2.default.createElement(_Input2.default, { type: "text",
label: "SSN",
placeholder: "SSN",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.ssn', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.ssn', []),
onChange: this.handleInput.bind(this, "ssn")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Phone",
placeholder: "Phone",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.phoneNumber', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.phoneNumber', []),
onChange: this.handleInput.bind(this, "phoneNumber")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Address 1",
placeholder: "Address 1",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.address1', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.address1', []),
onChange: this.handleInput.bind(this, "address1")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "Address 2",
placeholder: "Address 2",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.address2', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.address2', []),
onChange: this.handleInput.bind(this, "address2")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "City",
placeholder: "City",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.city', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.city', {}),
onChange: this.handleInput.bind(this, "city")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "State",
placeholder: "State",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.state', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.state', []),
onChange: this.handleInput.bind(this, "state")
}),
_react2.default.createElement(_Input2.default, { type: "text",
label: "ZIP",
placeholder: "ZIP",
className: "email-sign-up-email",
bsSize: "small",
disabled: disabled,
value: (0, _readProp2.default)(this.props.auth, 'signUp.form.zip', ''),
errors: (0, _readProp2.default)(this.props.auth, 'signUp.errors.zip', []),
onChange: this.handleInput.bind(this, "zip")
})
),
_react2.default.createElement(
_ButtonLoader2.default,
{ loading: (0, _readProp2.default)(this.props.auth, 'signUp.loading', false),
type: "submit",
className: "email-sign-up-submit pull-right",
icon: _react2.default.createElement(_reactBootstrap.Glyphicon, { glyph: "send" }),
disabled: disabled,
onClick: this.handleSubmit.bind(this)
},
"Sign Up"
)
);
}
}]);
return EmailSignUpForm;
return EmailSignUpForm;
}(_react2.default.Component);
exports.default = (0, _reactRedux.connect)(function (_ref) {
var app = _ref.app;
return { auth: app.auth };
var app = _ref.app;
return { auth: app.auth };
})(EmailSignUpForm);
/* REACT HOT LOADER */ }).call(this); } finally { if (false) { (function () { var foundReactClasses = module.hot.data && module.hot.data.foundReactClasses || false; if (module.exports && module.makeHot) { var makeExportsHot = require("/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/react-hot-loader/makeExportsHot.js"); if (makeExportsHot(module, require("react"))) { foundReactClasses = true; } var shouldAcceptModule = true && foundReactClasses; if (shouldAcceptModule) { module.hot.accept(function (err) { if (err) { console.error("Cannot not apply hot update to " + "EmailSignUpForm.js" + ": " + err.message); } }); } } module.hot.dispose(function (data) { data.makeHot = module.makeHot; data.foundReactClasses = foundReactClasses; }); })(); } }
@@ -7270,6 +7300,7 @@ webpackJsonp([0,3],{
*/
var customerInfoMap = exports.customerInfoMap = function customerInfoMap(_ref) {
var ssn = _ref.ssn;
var password = _ref.password;
var address1 = _ref.address1;
var address2 = _ref.address2;
var city = _ref.city;
@@ -7284,6 +7315,7 @@ webpackJsonp([0,3],{
"firstName": fname,
"lastName": lname
},
password: password,
email: email,
ssn: ssn,
"phoneNumber": phoneNumber,
@@ -7377,4 +7409,4 @@ webpackJsonp([0,3],{
/***/ }
});
//# sourceMappingURL=app.fcbedf54f0345474ccc1.js.map
//# sourceMappingURL=app.b0de56230554ae24a254.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,7 @@
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css"><link href="/style.6d7a32b1405ea1bb2bdf.css" rel="stylesheet"></head>
<body><div id="root"></div><script src="/manifest.087a5454fa0c34daf3c9.js"></script><script src="/vendor.c882d66445aebc52c21b.js"></script><script src="/style.6d7a32b1405ea1bb2bdf.js"></script><script src="/app.fcbedf54f0345474ccc1.js"></script><script>
<body><div id="root"></div><script src="/manifest.7d421cf4b17be2725a67.js"></script><script src="/vendor.c882d66445aebc52c21b.js"></script><script src="/style.6d7a32b1405ea1bb2bdf.js"></script><script src="/app.b0de56230554ae24a254.js"></script><script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -27,5 +27,5 @@
ga('send', 'pageview');
</script><!--{"files":{"publicPath":"/","chunks":{"manifest":{"size":0,"entry":"/manifest.087a5454fa0c34daf3c9.js","hash":"087a5454fa0c34daf3c9","css":[]},"vendor":{"size":1670874,"entry":"/vendor.c882d66445aebc52c21b.js","hash":"c882d66445aebc52c21b","css":[]},"style":{"size":122,"entry":"/style.6d7a32b1405ea1bb2bdf.js","hash":"6d7a32b1405ea1bb2bdf","css":["/style.6d7a32b1405ea1bb2bdf.css"]},"app":{"size":352314,"entry":"/app.fcbedf54f0345474ccc1.js","hash":"fcbedf54f0345474ccc1","css":[]}},"js":["/manifest.087a5454fa0c34daf3c9.js","/vendor.c882d66445aebc52c21b.js","/style.6d7a32b1405ea1bb2bdf.js","/app.fcbedf54f0345474ccc1.js"],"css":["/style.6d7a32b1405ea1bb2bdf.css"]},"options":{"template":"/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/html-webpack-plugin/lib/loader.js!/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/public/index.ejs","filename":"index.html","hash":false,"inject":false,"compile":true,"favicon":false,"minify":false,"cache":true,"showErrors":true,"chunks":"all","excludeChunks":[],"title":"Money Transfer App","xhtml":false,"description":"ES Money Transfer App","appMountId":"root","googleAnalytics":{"trackingId":"UA-XXXX-XX","pageViewOnLoad":true},"mobile":true}}--></body>
</script><!--{"files":{"publicPath":"/","chunks":{"manifest":{"size":0,"entry":"/manifest.7d421cf4b17be2725a67.js","hash":"7d421cf4b17be2725a67","css":[]},"vendor":{"size":1670874,"entry":"/vendor.c882d66445aebc52c21b.js","hash":"c882d66445aebc52c21b","css":[]},"style":{"size":122,"entry":"/style.6d7a32b1405ea1bb2bdf.js","hash":"6d7a32b1405ea1bb2bdf","css":["/style.6d7a32b1405ea1bb2bdf.css"]},"app":{"size":358241,"entry":"/app.b0de56230554ae24a254.js","hash":"b0de56230554ae24a254","css":[]}},"js":["/manifest.7d421cf4b17be2725a67.js","/vendor.c882d66445aebc52c21b.js","/style.6d7a32b1405ea1bb2bdf.js","/app.b0de56230554ae24a254.js"],"css":["/style.6d7a32b1405ea1bb2bdf.css"]},"options":{"template":"/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/node_modules/html-webpack-plugin/lib/loader.js!/Users/andrew/dev/clients/ES/code/event-sourcing-examples/js-frontend/public/index.ejs","filename":"index.html","hash":false,"inject":false,"compile":true,"favicon":false,"minify":false,"cache":true,"showErrors":true,"chunks":"all","excludeChunks":[],"title":"Money Transfer App","xhtml":false,"description":"ES Money Transfer App","appMountId":"root","googleAnalytics":{"trackingId":"UA-XXXX-XX","pageViewOnLoad":true},"mobile":true}}--></body>
</html>

View File

@@ -76,7 +76,7 @@
/******/ script.charset = 'utf-8';
/******/ script.async = true;
/******/
/******/ script.src = __webpack_require__.p + "" + {"0":"fcbedf54f0345474ccc1","1":"6d7a32b1405ea1bb2bdf","2":"c882d66445aebc52c21b"}[chunkId] + ".js";
/******/ script.src = __webpack_require__.p + "" + {"0":"b0de56230554ae24a254","1":"6d7a32b1405ea1bb2bdf","2":"c882d66445aebc52c21b"}[chunkId] + ".js";
/******/ head.appendChild(script);
/******/ }
/******/ };
@@ -92,4 +92,4 @@
/******/ })
/************************************************************************/
/******/ ([]);
//# sourceMappingURL=manifest.087a5454fa0c34daf3c9.js.map
//# sourceMappingURL=manifest.7d421cf4b17be2725a67.js.map

View File

@@ -1 +1 @@
{"version":3,"sources":["webpack:///webpack/bootstrap edd3ecd6d3192330eb69?"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAQ,oBAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAA+C,iFAAiF;AAChI;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA","file":"manifest.087a5454fa0c34daf3c9.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t3:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"\" + {\"0\":\"fcbedf54f0345474ccc1\",\"1\":\"6d7a32b1405ea1bb2bdf\",\"2\":\"c882d66445aebc52c21b\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap edd3ecd6d3192330eb69\n **/"],"sourceRoot":""}
{"version":3,"sources":["webpack:///webpack/bootstrap cbccb464c1729e34dd25?"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAQ,oBAAoB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAA+C,iFAAiF;AAChI;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA","file":"manifest.7d421cf4b17be2725a67.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, callbacks = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId])\n \t\t\t\tcallbacks.push.apply(callbacks, installedChunks[chunkId]);\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);\n \t\twhile(callbacks.length)\n \t\t\tcallbacks.shift().call(null, __webpack_require__);\n \t\tif(moreModules[0]) {\n \t\t\tinstalledModules[0] = 0;\n \t\t\treturn __webpack_require__(0);\n \t\t}\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// \"0\" means \"already loaded\"\n \t// Array means \"loading\", array contains callbacks\n \tvar installedChunks = {\n \t\t3:0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId, callback) {\n \t\t// \"0\" is the signal for \"already loaded\"\n \t\tif(installedChunks[chunkId] === 0)\n \t\t\treturn callback.call(null, __webpack_require__);\n\n \t\t// an array means \"currently loading\".\n \t\tif(installedChunks[chunkId] !== undefined) {\n \t\t\tinstalledChunks[chunkId].push(callback);\n \t\t} else {\n \t\t\t// start chunk loading\n \t\t\tinstalledChunks[chunkId] = [callback];\n \t\t\tvar head = document.getElementsByTagName('head')[0];\n \t\t\tvar script = document.createElement('script');\n \t\t\tscript.type = 'text/javascript';\n \t\t\tscript.charset = 'utf-8';\n \t\t\tscript.async = true;\n\n \t\t\tscript.src = __webpack_require__.p + \"\" + {\"0\":\"b0de56230554ae24a254\",\"1\":\"6d7a32b1405ea1bb2bdf\",\"2\":\"c882d66445aebc52c21b\"}[chunkId] + \".js\";\n \t\t\thead.appendChild(script);\n \t\t}\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap cbccb464c1729e34dd25\n **/"],"sourceRoot":""}

View File

@@ -90,6 +90,17 @@ class EmailSignInForm extends React.Component {
onChange={this.handleInput.bind(this, "email")}
{...this.props.inputProps.email} />
<Input type="password"
className="password-sign-in-email"
label="Password"
placeholder="Password"
name="password"
disabled={disabled}
value={read(this.props.auth, 'signIn.form.password', '')}
errors={read(this.props.auth, 'signIn.errors.password', [])}
onChange={this.handleInput.bind(this, "password")}
{...this.props.inputProps.password} />
<ButtonLoader loading={read(this.props.auth, 'signIn.loading', false)}
type="submit"
icon={<BS.Glyphicon glyph="log-in" />}

View File

@@ -81,6 +81,28 @@ class EmailSignUpForm extends React.Component {
onChange={this.handleInput.bind(this, "email")}
/>
<Input type="password"
className="password-sign-in-email"
label="Password"
placeholder="Password"
name="password"
disabled={disabled}
value={read(this.props.auth, 'signUp.form.password', '')}
errors={read(this.props.auth, 'signUp.errors.password', [])}
onChange={this.handleInput.bind(this, "password")}
/>
<Input type="password"
className="password-sign-in-email"
label="Confirm password"
placeholder="Confirm password"
name="password-confirm"
disabled={disabled}
value={read(this.props.auth, 'signUp.form.passwordConfirm', '')}
errors={read(this.props.auth, 'signUp.errors.passwordConfirm', [])}
onChange={this.handleInput.bind(this, "passwordConfirm")}
/>
</IndexPanel>

View File

@@ -3,6 +3,7 @@
*/
export const customerInfoMap = ({
ssn,
password,
address1,
address2,
city, //: "Moscow"
@@ -17,6 +18,7 @@ export const customerInfoMap = ({
"firstName": fname,
"lastName": lname
},
password,
email,
ssn,
"phoneNumber": phoneNumber,