Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kedifa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
kedifa
Commits
64f3419a
Commit
64f3419a
authored
Jul 31, 2019
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: Stabilise the key length
parent
1d871c10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
kedifa/app.py
kedifa/app.py
+3
-1
No files found.
kedifa/app.py
View file @
64f3419a
...
@@ -139,7 +139,9 @@ class SQLite3Storage(local):
...
@@ -139,7 +139,9 @@ class SQLite3Storage(local):
)
)
if
result
is
not
None
:
if
result
is
not
None
:
raise
UserExists
raise
UserExists
key
=
'%x'
%
(
random
.
getrandbits
(
128
),)
key
=
''
.
join
(
random
.
choice
(
string
.
ascii_lowercase
+
string
.
digits
)
for
i
in
range
(
32
))
db
.
cursor
().
execute
(
db
.
cursor
().
execute
(
'INSERT INTO uploader '
'INSERT INTO uploader '
'(reference, key, active) '
'(reference, key, active) '
...
...
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