mirror of
https://github.com/PowerDNS-Admin/PowerDNS-Admin.git
synced 2026-04-25 08:45:55 +03:00
[GH-ISSUE #66] Gravatar #44
Labels
No labels
bug / broken-feature
bug / broken-feature
docs / request
feature / request
help / other
mod / help-wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PowerDNS-Admin-PowerDNS-Admin#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @joachimtingvold on GitHub (Jul 2, 2016).
Original GitHub issue: https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/66
Hi,
Could Gravatar-support be added, as an alternative to uploading avatars?
@ivanfilippov commented on GitHub (Jul 13, 2016):
@ngoduykhanh
Can you review and assist if you can with this? I have it working here
github.com/ivanfilippov/PowerDNS-Admin@c22f3424f6But I feel like there should be a better way than injecting the local variable on user load. I tried to make it a local variable in the model but it doesn't stick around. There's an option to make a custom Jinja filter to do md5 hashes, but I'm not sure if that's a better solution.
@ngoduykhanh commented on GitHub (Jul 13, 2016):
Hi @ivanfilippov ,
Honestly I don't like the idea of adding one more value in the model for this purpose. We better to use Jinja filter, it is more flexible.
Please take a look at my
gravatarbranch with commit3edf9b01faThanks.
@ivanfilippov commented on GitHub (Jul 13, 2016):
@ngoduykhanh Nice, I like it!
If you'd like, I think you can simplify the code a bit since I don't think we need to check for SSL. It should be ok and error-free to request gravatars over HTTPS even when PDNS-Admin is loaded over HTTP, as opposed to the other way around which would cause errors.
👍
@ngoduykhanh commented on GitHub (Jul 13, 2016):
@ivanfilippov : do you mean forcing to load gravatar with HTTPS even PowerDNS-Admin is loaded over HTTP? If yes, I am ok with that too since we won't waste server resource to check if the connection is SECURE in every request :D
@ivanfilippov commented on GitHub (Jul 13, 2016):
Yes that's what I meant!
@ngoduykhanh commented on GitHub (Jul 13, 2016):
OK, removed the SSL check and added this enhancement into
masterbranch. Thanks.