Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Conversation

@gnat42
Copy link
Contributor

@gnat42 gnat42 commented Apr 24, 2020

Perhaps I'm not doing this correctly however, we need 2fa with multiple firewalls. There seems to be an issue with being able to support that.
The provider is configured with the template to render, however the path is configured by the firewall. So when my email provider renders the 2fa it has no concept of where the check should be submitted to. If the template was configured on the firewall that'd be different. So what I've done is passed the check_path variable to the template so the form submission can submit to the correct location

@scheb
Copy link
Owner

scheb commented Apr 25, 2020

True, I'm wondering why no one has discovered this issue before. Probably everyone is just using it with a single firewall.

For whatever reason the build result from Travis-CI didn't show up here, so I just restarted it to make the results show up. There are some code style issues that I'd like to ask you to fix.

Furthermore, would you please update the default for template to make use of these two new variables.

Overall, the PR looks well executed, so after you did these two changes I can accept that and release a patched version :)

@gnat42
Copy link
Contributor Author

gnat42 commented Apr 25, 2020

Yeah, I was quite confused as well. I'll get the sample template fixed today. What are the style changes you wanted?

@scheb
Copy link
Owner

scheb commented Apr 25, 2020

The style issues are listed there in the build log: https://travis-ci.org/github/scheb/two-factor-bundle/jobs/679146572

Thanks!

Perhaps I'm not doing this correctly however, we need 2fa with multiple firewalls. There seems to be an issue with being able to support that.
The provider is configured with the template to render, however the path is configured by the firewall. So when my email provider renders the 2fa it has no concept of where the check should be submitted to. If the template was configured on the firewall that'd be different. So what I've done is passed the check_path variable to the template so the form submission can submit to the correct location
@gnat42
Copy link
Contributor Author

gnat42 commented Apr 28, 2020

Hello @scheb just a gentle ping in case you didn't see the updated PR. If you are busy no worries, I just wasn't sure if you were notified of the update.

@scheb
Copy link
Owner

scheb commented Apr 28, 2020

Indeed, I didn't see it, didn't get a notification. Will have a look tomorrow.

@scheb scheb merged commit 253ed9e into scheb:master Apr 29, 2020
@scheb
Copy link
Owner

scheb commented Apr 29, 2020

Released as v4.15.0. Thank you for your contribution!

@gnat42 gnat42 deleted the patch-1 branch April 29, 2020 15:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants