Rank: Advanced Member
Groups: Authorized User, Developers, Registered Joined: 4/17/2019(UTC) Posts: 80
|
My client was trying to set up the Google Authenticator.
When they click "Setup Google Authenticator" on the Login page to get the QR code they are sent an email using the Subscription Expired Template (29).
I see in the Admin User Controller: EmailTemplate emailTemplate = _emailTemplateRepo.Load(AbleContext.Current.Store.Settings.TFAEmailTemplateId);
I can't find any place in the Admin to set the Email Template for the Google Authenticator.
So I went in the database and ran this: update ac_storesettings set fieldvalue = '38' where fieldname = 'tfaemailtemplateId'
Then about 10 minutes later it went back to the original value of 29.
How can I set this to use the correct template and have it stick?
Thanks
|
|
|
|
Rank: Advanced Member
Groups ready for retrieval: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
The issue occurred because of the upgrade. We are forcing the template Id to 29 on the upgrade which produced this bug. I am reporting the issue as a bug. Thanks for identifying. Quote:Then about 10 minutes later it went back to the original value of 29. This might happen because of the cached value. After updating the value directly in the database, you need to restart the website/IIS.
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Originally Posted by: shaharyar This might happen because of the cached value. After updating the value directly in the database, you need to restart the website/IIS. What is the cache duration on ac_StoreSettings values?
|
|
|
|
Rank: Advanced Member
Groups ready for retrieval: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Once loaded from the database, store settings are stored at the application level and it only reloads the values from the database when the application is restarted.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close