diff --git a/_build/GoogleAuthenticatorX/resolvers/setupoptions.resolver.php b/_build/GoogleAuthenticatorX/resolvers/setupoptions.resolver.php index d795772..0a48d69 100644 --- a/_build/GoogleAuthenticatorX/resolvers/setupoptions.resolver.php +++ b/_build/GoogleAuthenticatorX/resolvers/setupoptions.resolver.php @@ -37,14 +37,13 @@ $modx->getService('lexicon','modLexicon'); $modx->log(modX::LOG_LEVEL_WARN,'Started sending emails to users with manager access...'); $mgrCtx = $modx->getObject('modContext', array('key' => 'mgr')); - $body = '
hellloooooooo
'; //Load lexicon and get email body and subject. //maybe check each user lexicon and load his language email. $subject = '2-step verification is enabled'; $users = $modx->getCollection('modUser'); foreach($users as $iuser){ if(checkPolicy('frames', $mgrCtx, $iuser) ){ //Get body and subject for each user manager language $mgrLanguage = $iuser->getOption('manager_language'); - $modx->lexicon->load("$mgrLanguage:GoogleAuthenticatorX:emailtpl"); + $modx->lexicon->load("GoogleAuthenticatorX:emailtpl", $mgrLanguage); $subject = $modx->lexicon('gax.notifyemail_subject'); $body = $modx->lexicon('gax.notifyemail_body',array( 'username' => $iuser->get('username'),)); $body = ''.$body.''; diff --git a/core/components/GoogleAuthenticatorX/docs/changelog.txt b/core/components/GoogleAuthenticatorX/docs/changelog.txt index 9254d0b..dd11349 100644 --- a/core/components/GoogleAuthenticatorX/docs/changelog.txt +++ b/core/components/GoogleAuthenticatorX/docs/changelog.txt @@ -1,5 +1,9 @@ Changelog file for GoogleAuthenticatorX ModX extra. +GoogleAuthenticatorX 1.0.0-rc2 +==================================== +- Fixed sending email to users during installation i8n issue + GoogleAuthenticatorX 1.0.0-rc2 ==================================== - [#1] Added setup-options (enable 2-step verification + email instructions to users with manager access)