From fd49e0eb780d2dc3c945211b89c0e6fdddef15d2 Mon Sep 17 00:00:00 2001
From: xisi
Date: Sun, 19 Jan 2014 01:30:41 -0500
Subject: [PATCH] disabled is actually correct to use in cash out form, we want
the css props slightly optimization
---
public/include/pages/account/edit.inc.php | 6 +++---
public/templates/mpos/account/edit/default.tpl | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/public/include/pages/account/edit.inc.php b/public/include/pages/account/edit.inc.php
index b2713a2b..68b603eb 100644
--- a/public/include/pages/account/edit.inc.php
+++ b/public/include/pages/account/edit.inc.php
@@ -23,17 +23,17 @@ if ($user->isAuthenticated()) {
if ($config['twofactor']['enabled']) {
$popupmsg = 'E-mail confirmations are required for ';
$popuptypes = array();
- if ($config['twofactor']['options']['details']) {
+ if ($config['twofactor']['options']['details'] && $oldtoken_ea !== "") {
$popuptypes[] = 'editing your details';
$ea_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_ea, 5);
$ea_sent = $user->token->doesTokenExist('account_edit', $_SESSION['USERDATA']['id']);
}
- if ($config['twofactor']['options']['changepw']) {
+ if ($config['twofactor']['options']['changepw'] && $oldtoken_cp !== "") {
$popuptypes[] = 'changing your password';
$cp_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_cp, 6);
$cp_sent = $user->token->doesTokenExist('change_pw', $_SESSION['USERDATA']['id']);
}
- if ($config['twofactor']['options']['withdraw']) {
+ if ($config['twofactor']['options']['withdraw'] && $oldtoken_wf !== "") {
$popuptypes[] = 'withdrawals';
$wf_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_wf, 7);
$wf_sent = $user->token->doesTokenExist('withdraw_funds', $_SESSION['USERDATA']['id']);
diff --git a/public/templates/mpos/account/edit/default.tpl b/public/templates/mpos/account/edit/default.tpl
index 7687a587..cea3d882 100644
--- a/public/templates/mpos/account/edit/default.tpl
+++ b/public/templates/mpos/account/edit/default.tpl
@@ -91,11 +91,11 @@