-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Prettier login page for odoobouncer (#2314) #2
base: master
Are you sure you want to change the base?
Conversation
5a2b7dc
to
0e4077a
Compare
nginx-odoo.py
Outdated
@@ -37,7 +37,7 @@ def get(self): | |||
if not redirect_url.endswith("/"): | |||
redirect_url += "/" | |||
return self.redirect(f"{redirect_url}auth/{session_id}") | |||
self.render(r"./templates/login.html", **config.theme_params) | |||
self.render(r"./templates/login-2.html", **config.theme_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KKamaa We currently have an environment variable for the backgoundcolor; could you create another environment variable called NGINX_ODOO_THEME
or something, which defaults to login
, but with which you can configure to use another theme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomaspaulb added the env variable
</div> | ||
</div> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the page for the first step, but how about the second step of entering the 2FA code? Is that also using the other theme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one template for this but support for the env variable incase future templates are added.
abe42cd
to
3faa618
Compare
added sample of logins to choose from many more can be added as stand by templates for future implementations.