Browse Source

Closes #91 + fix python None test

root 8 years ago
parent
commit
6c954b09fc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      install/requirements.txt
  2. 1 1
      tracim/tracim/lib/auth/internal.py

+ 1 - 1
install/requirements.txt View File

@@ -59,7 +59,7 @@ unicode-slugify==0.1.3
59 59
 vobject==0.9.2
60 60
 waitress==0.8.9
61 61
 who-ldap==3.1.0
62
--e git+git@github.com:Nonolost/wsgidav.git@a5df223d5c66c252baa89ec5de8073f9f1494a8f#egg=wsgidav
62
+-e git+https://github.com/Nonolost/wsgidav.git@a5df223d5c66c252baa89ec5de8073f9f1494a8f#egg=wsgidav
63 63
 zope.interface==4.1.3
64 64
 zope.sqlalchemy==0.7.6
65 65
 

+ 1 - 1
tracim/tracim/lib/auth/internal.py View File

@@ -36,7 +36,7 @@ class InternalApplicationAuthMetadata(TGAuthMetadata):
36 36
         )).first()
37 37
 
38 38
         if user and user.validate_password(identity['password']):
39
-            if user.webdav_left_digest_response_hash == '':
39
+            if not user.webdav_left_digest_response_hash:
40 40
                 user.webdav_left_digest_response_hash = '%s:/:%s' % (identity['login'], identity['password'])
41 41
                 DBSession.flush()
42 42
                 # TODO : temporary fix to update DB, to remove