Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
autoca
Commits
ab3589a4
Commit
ab3589a4
authored
Jan 07, 2013
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Signer.encode() to take an argument
parent
eb766709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
autovpn/vpn_app.py
autovpn/vpn_app.py
+1
-2
No files found.
autovpn/vpn_app.py
View file @
ab3589a4
...
...
@@ -169,8 +169,7 @@ class Signer(object):
self
.
l
.
signer
=
itsdangerous
.
URLSafeTimedSerializer
(
self
.
secret
,
salt
=
'cn'
)
return
self
.
l
.
signer
def
encode
(
self
):
cn
=
str
(
uuid
.
uuid4
())
def
encode
(
self
,
cn
):
return
self
.
_signer
().
dumps
(
cn
)
def
decode
(
self
,
token
):
...
...
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