Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
ba8a0b63
Commit
ba8a0b63
authored
Apr 22, 2020
by
Vladislav Rykov
Browse files
bug fixes
parent
907ac1f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/app/views.py
View file @
ba8a0b63
...
...
@@ -42,9 +42,9 @@ def signup():
if
(
username
==
''
or
password
==
''
):
feedback
=
'Username or password fields cannot be empty'
return
render_template
(
'public/signup.html'
,
feedback
=
feedback
)
#
elif (len(password) < 8):
#
flash('Password length must be at least 8 characters.', 'danger')
#
return redirect(request.url)
elif
(
len
(
password
)
<
8
):
flash
(
'Password length must be at least 8 characters.'
,
'danger'
)
return
redirect
(
request
.
url
)
else
:
res
=
ud
.
create
(
username
,
password
,
'user'
)
if
(
not
res
[
0
]):
...
...
Write
Preview
Supports
Markdown
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