customize secure directory manager plugin

Confluence User - 08 Feb, 2021

Hi,

I need to custom "Secure Directory Manager" plugin,

i want to change smtp mail setting [Reset password SMTP for user Forgot Password] to dynamic smtp setting by domain mail recipients.

for sample

if recipient domain mail @domain1.com then smtp setting username mailler@domain1.com

if recipient domain mail @domain2.com then smtp setting username mailler@domain2.com


thanks in advance

Best Regards

Khafidz

password;smtp;resetpassword

3


08 Feb, 2021 •
confluenceUser •
1 •
confluenceUser •

Hi there,

By using Hash Variable to detect the current user's email, you can then use Bean Shell Hash Variable to check the user's domain mail and then output the result you need.

Hope this helps!

08 Feb, 2021 •
confluenceUser •
•
confluenceUser •

Hi Chris,

Thanks for your idea, but i can't get current email because if you forgot password its mean you are not logged in. Any ideas?

08 Feb, 2021 •
confluenceUser •
•
confluenceUser •

Hi Chris, i have tried your idea, its worked from me.

thanks Chris

Best Regards

Khafidz

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print