public static function MoAuthUtilities::getHiddenEmail in Google Authenticator / 2 Factor Authentication - 2FA 7
2 calls to MoAuthUtilities::getHiddenEmail()
- mo_auth_build_oobemail_form in ./
authenticate_user.inc - mo_auth_test_email_verification in ./
test_email_verification.inc - Menu callback for email verification.
File
- classes/
Utilities.php, line 232 - This file is part of miniOrange 2FA module.
Class
- MoAuthUtilities
- @file This file is part of miniOrange 2FA module.
Code
public static function getHiddenEmail($email) {
$split = explode("@", $email);
if (count($split) == 2) {
$hidden_email = substr($split[0], 0, 1) . 'xxxxxx' . substr($split[0], -1) . '@' . $split[1];
return $hidden_email;
}
return $email;
}