change function name for sending 2f emails
This commit is contained in:
parent
8736123df2
commit
e7725399c2
@ -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);
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user