Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Redirect the user to the admin dashboard after he successfully creates a 2fa key

  • Laquhellli_527196
  • Laquhellli_527196's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
4 months 3 weeks ago #266164 by Laquhellli_527196
Please help us help you and fill where relevant:
LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey Cloud:
Survey theme/template:
==================
Hello!

I am currently using the "TwoFactorAdminLogin" plugin and need assistance with modifying its behavior. Specifically, I want to redirect users to the admin dashboard (index.php/admin/index) after successfully setting up Two-Factor Authentication (2FA). 

Currently, after 2FA creation, the page reloads and displays the created 2FA on "index.php/admin/pluginhelper/sa/fullpagewrapper/plugin/TwoFactorAdminLogin/method/userindex". I would prefer it to redirect directly to the admin dashboard instead.

Is there a way to achieve this? Any guidance on modifying the plugin to implement this redirection would be greatly appreciated.

Thank you!
 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 months 3 weeks ago #266559 by DenisChenu
Add

App()->->getRequest()->redirect('admin/index');

BUT : how user can add the code on their 2FA system ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose