FEATURE: redesign the change password page to use javascript and validations

This commit is contained in:
Neil Lalonde
2017-01-31 15:42:12 -05:00
parent b251d11518
commit c4e10f2a9d
20 changed files with 365 additions and 122 deletions

View File

@@ -1,7 +1,7 @@
import storePretender from 'helpers/store-pretender';
import fixturePretender from 'helpers/fixture-pretender';
function parsePostData(query) {
export function parsePostData(query) {
const result = {};
query.split("&").forEach(function(part) {
const item = part.split("=");
@@ -18,7 +18,7 @@ function parsePostData(query) {
});
return result;
}
};
function response(code, obj) {
if (typeof code === "object") {