change function name for sending 2f emails

This commit is contained in:
xisi 2014-01-16 04:07:57 -05:00
parent 8736123df2
commit e7725399c2
2 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ class User extends Base {
* @param userID int User ID * @param userID int User ID
* @return bool * @return bool
*/ */
public function sendChangeConf($strType, $userID) { public function sendChangeConfigEmail($strType, $userID) {
$exists = $this->token->doesTokenExist($strType, $userID); $exists = $this->token->doesTokenExist($strType, $userID);
if ($exists == 0) { if ($exists == 0) {
$token = $this->token->createToken($strType, $userID); $token = $this->token->createToken($strType, $userID);

View File

@ -71,7 +71,7 @@ if ($user->isAuthenticated()) {
$isvalid = in_array($_POST['utype'],$validtypes); $isvalid = in_array($_POST['utype'],$validtypes);
if ($isvalid) { if ($isvalid) {
$ctype = strip_tags($_POST['utype']); $ctype = strip_tags($_POST['utype']);
$send = $user->sendChangeConf($ctype, $_SESSION['USERDATA']['id']); $send = $user->sendChangeConfigEmail($ctype, $_SESSION['USERDATA']['id']);
if ($send) { if ($send) {
$_SESSION['POPUP'][] = array('CONTENT' => 'A confirmation was sent to your e-mail, follow that link to continue', 'TYPE' => 'success'); $_SESSION['POPUP'][] = array('CONTENT' => 'A confirmation was sent to your e-mail, follow that link to continue', 'TYPE' => 'success');
} else { } else {