浏览代码

Closes #91 + fix python None test

root 8 年前
父节点
当前提交
6c954b09fc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      install/requirements.txt
  2. 1 1
      tracim/tracim/lib/auth/internal.py

+ 1 - 1
install/requirements.txt 查看文件

59
 vobject==0.9.2
59
 vobject==0.9.2
60
 waitress==0.8.9
60
 waitress==0.8.9
61
 who-ldap==3.1.0
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
 zope.interface==4.1.3
63
 zope.interface==4.1.3
64
 zope.sqlalchemy==0.7.6
64
 zope.sqlalchemy==0.7.6
65
 
65
 

+ 1 - 1
tracim/tracim/lib/auth/internal.py 查看文件

36
         )).first()
36
         )).first()
37
 
37
 
38
         if user and user.validate_password(identity['password']):
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
                 user.webdav_left_digest_response_hash = '%s:/:%s' % (identity['login'], identity['password'])
40
                 user.webdav_left_digest_response_hash = '%s:/:%s' % (identity['login'], identity['password'])
41
                 DBSession.flush()
41
                 DBSession.flush()
42
                 # TODO : temporary fix to update DB, to remove
42
                 # TODO : temporary fix to update DB, to remove