E-mail
@@ -67,6 +67,9 @@
Password
+
diff --git a/components/account/account.js b/components/account/account.js
index 8faeb2f..fffc2de 100644
--- a/components/account/account.js
+++ b/components/account/account.js
@@ -9,6 +9,9 @@ $(document).ready( () => {
const updatePassword = pwdform.find('.update-password')
const register = component.find('.register')
const registerForm = component.find('.new-user-form')
+ const loginForm = component.find('.login-form')
+
+ if(loginForm.hasClass('error')) Apis.notification('ERRORE: Username o password errate.')
const orders = component.find('.order-row')
@@ -115,7 +118,6 @@ $(document).ready( () => {
})
const checkForm = () => {
- console.log('checkForm')
const inputs = component.find('.input')
const passwords = component.find('.input[type="password"]')
let errors = 0
diff --git a/components/account/account.scss b/components/account/account.scss
index d1ed124..356f333 100644
--- a/components/account/account.scss
+++ b/components/account/account.scss
@@ -37,6 +37,13 @@
padding: 15px 0 5px 0;
}
+ .errors {
+ display: block;
+ @include font-style($font-sans, 700, $font-16);
+ color: $red;
+ padding: 15px 0 5px 0;
+ }
+
.input {
&.error {
border: 1px solid $red;
diff --git a/components/breadcrumb/breadcrumb.html b/components/breadcrumb/breadcrumb.html
index b923115..f63c0b3 100644
--- a/components/breadcrumb/breadcrumb.html
+++ b/components/breadcrumb/breadcrumb.html
@@ -22,6 +22,9 @@
case 'account':
$levels[0] = array('account', '/account');
break;
+ case 'recupera-password':
+ $levels[0] = array('Recupera password', '/recupera-password');
+ break;
case 'checkout':
$levels[0] = array('checkout', '/checkout');
break;
diff --git a/components/checkout/checkout.js b/components/checkout/checkout.js
index eeb7e7a..bcd9bba 100644
--- a/components/checkout/checkout.js
+++ b/components/checkout/checkout.js
@@ -187,6 +187,13 @@ $(document).ready( () => {
onApprove: (data, actions) => {
return actions.order.capture().then( (details) => {
console.log('Transaction completed by ', details, `${ENV.PP_RETURN}?token=${data.orderID}`)
+ sessionStorage.setItem('order', JSON.stringify({
+ profile: profile,
+ cartItems: cartItems,
+ token: data.orderID,
+ uid: uid,
+ amount: amount
+ }))
window.location = `${ENV.PP_RETURN}?token=${data.orderID}`
})
}
diff --git a/components/passwordRecovery/passwordRecovery.html b/components/passwordRecovery/passwordRecovery.html
new file mode 100644
index 0000000..b8976da
--- /dev/null
+++ b/components/passwordRecovery/passwordRecovery.html
@@ -0,0 +1,80 @@
+
Ciao ".$user['first_name'].", ".
+ "ricevi questa mail perchè hai richiesto il reset della tua password su Iolovolio, di seguito troverai la tua nuova password temporanea, ti consigliamo di modificarla al primo accesso:
".
+ "Username: ".$user['email']." ".
+ "Nuova password: ".$new_password." ".
+ " |