Custom authenticated image or logo in the usermin/webmin login form?

  • fakemoth
  • 12/10/07
  • Offline
Posted: Tue, 2009-11-24 03:39

Hello, posted some question here http://www.virtualmin.com/node/9898

The /etc/usermin/custom-lang method works but how can we make it more... organic? IE8 is always complaining (via annoying pop-ups, Firefox is silent in that matter) that the picture comes from another site, another cert, unauthenticated content and stuff. Can we grab the image locally somehow, not via URL?

I know it's not a problem but my users don't. Got a lot of phone calls lately :)

Thanks.


Sorry, I saw your message

  • andreychek
  • 01/04/09
  • Offline
  • Tue, 2009-11-24 06:56

Sorry, I saw your message there and hadn't yet gotten around to digging into what that problem may be :-)

Is the URL for your control panel "https" while your logo is just "http"? Maybe you can try putting the logo in a place where you can access it with the same domain name and both with "https", it's possible that could help.

-Eric


Custom images via https

  • JamieCameron
  • 10/23/08
  • Offline
  • Mon, 2009-11-30 21:24

One solution would be to do the following :

1) Under your Webmin base directory (typically /usr/libexec/webmin or /usr/share/webmin), create the sub-directories mylogos and mylogos/unauthenticated

2) Put your images into mylogos/unauthenticated

3) In your custom-lang file, use HTML like <img src=/mylogos/unauthenticated/logo.png>


No problem

  • fakemoth
  • 12/10/07
  • Offline
  • Tue, 2009-11-24 14:16

Of course I tried but you know IE, makes a big deal about everything trying to "keep you safe" - but it has another url so... another cert warning.


Another issue

  • fakemoth
  • 12/10/07
  • Offline
  • Wed, 2009-11-25 00:50

PS: in Firefox via https...whatever... now doesn't load at all > the broken image icon.

I noticed someting unusual in Usermin - there are 3 Romanian characters with problems in the e-mails; how can I solve this? Here they are with their coresponding mambo...joomla :)

ă >>> & # 2 5 9 ;

î >>> = E E

ş >>> & # 3 5 1 ;

I've put some spaces between the chars to get them in your forum (it prints of course the diacritics)


That'd probably be a bug.

  • Joe
  • 10/23/08
  • Offline
  • Thu, 2009-11-26 10:42

That'd probably be a bug. Though character encodings are tricky...mail can have different encodings, and users can set their preferred encoding in Usermin.

But you might file a ticket and see what Jamie says on the subject. He understands this stuff way better than I do.


Broken image icon

  • fakemoth
  • 12/10/07
  • Offline
  • Tue, 2009-12-01 00:47

It doesn't work either, I still get the broken image icon in any browser. The path is this one: /usr/libexec/webmin/mylogos/unauthenticated/logo.jpg , in /etc/webmin/custom-lang I have session_prefix=<img src=/mylogos/unauthenticated/logo.jpg>, the path is correct in the browser: https://something:XXXX/mylogos/unauthenticated/logo.jpg ...

So what is wrong? Man it can't be that hard to add an image to an web interface :) Hope it's only a typo.


Re: Broken image icon

  • JamieCameron
  • 10/23/08
  • Offline
  • Tue, 2009-12-01 09:35

What happens if you just open that image directly in your browser - what error is displayed?


No errors, just keeps

  • fakemoth
  • 12/10/07
  • Offline
  • Tue, 2009-12-01 21:58

No errors, just keeps presenting the login form. With the broken icon on top.


Unauthenticated directory

  • JamieCameron
  • 10/23/08
  • Offline
  • Tue, 2009-12-01 22:14

Sorry, I made a mistake .. you really want to put your logo in the existing /usr/libexec/webmin/unauthenticated directory, and then refer to it with HTML like <img src=/unauthenticated/mylogo.png>


No problem

  • fakemoth
  • 12/10/07
  • Offline
  • Wed, 2009-12-02 00:00

It works. In Usermin too, by adding the dir. to /usr/libexec/usermin/ With 0 warnings in any browser. Thanks!

It's a small thing but it changes and personalizes our page. And we have great logos, worth showing them around :)