Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
7b0166f3
Commit
7b0166f3
authored
Oct 28, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in crypt() -based auth encoding handling.
parent
f4fc2dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/python/AccessControl/AuthEncoding.py
lib/python/AccessControl/AuthEncoding.py
+2
-2
No files found.
lib/python/AccessControl/AuthEncoding.py
View file @
7b0166f3
...
...
@@ -83,7 +83,7 @@
#
##############################################################################
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
import
sha
,
binascii
from
string
import
upper
...
...
@@ -106,7 +106,7 @@ def pw_validate(reference, attempt):
result
=
reference
[
5
:]
==
attempt
elif
upper
(
reference
[:
7
])
==
'{CRYPT}'
and
crypt
is
not
None
:
#if crypt is None, it's not compiled in and everything will fail
attempt
=
crypt
(
attempt
,
reference
[
7
:
9
])
attempt
=
crypt
.
crypt
(
attempt
,
reference
[
7
:
9
])
result
=
reference
[
7
:]
==
attempt
else
:
result
=
reference
==
attempt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment