[PATCH] Allow webui usage without a password.

Suggestions and discussion of future versions
Post Reply
Azelphur
Member
Member
Posts: 10
Joined: Sun May 17, 2015 1:47 am

[PATCH] Allow webui usage without a password.

Post by Azelphur »

Here's the patch, hopefully it doesn't suck.

Code: Select all

azelphur@azelphur-server:~$ diff /usr/lib/python2.7/dist-packages/deluge/ui/web/auth.py ~/auth.py 
259,261c259,260
<         if "disable_auth" not in config or not config["disable_auth"]:
<             if auth_level < level:
<                 raise AuthError("Not authenticated")
---
>         if auth_level < level:
>             raise AuthError("Not authenticated")
302,304d300
<         config = component.get("DelugeWeb").config
<         if "disable_auth" in config and config["disable_auth"]:
<             return True
azelphur@azelphur-server:~$ diff /usr/lib/python2.7/dist-packages/deluge/ui/web/server.py ~/server.py 
106,107c106
<     "cert": "ssl/daemon.cert",
<     "disable_auth": False
---
>     "cert": "ssl/daemon.cert"
The reason/motivation behind this feature is that I use Deluge behind nginx, which already has authentication. So Deluge doing authentication is annoying, as I have to authenticate twice.

Secondly, Trac registration is down. I get an error which states "CAPTCHA failed to handle original request" which is why I'm posting the patch here.
Post Reply