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
The Tor Project
TPA
Anonymous Ticket Portal
Commits
23301d12
Commit
23301d12
authored
Feb 17, 2021
by
ViolanteCodes
Browse files
deleted build_code_phrase method for form
parent
54c43158
Changes
1
Show whitespace changes
Inline
Side-by-side
anonticket/forms.py
View file @
23301d12
...
@@ -21,12 +21,6 @@ class LoginForm(forms.Form):
...
@@ -21,12 +21,6 @@ class LoginForm(forms.Form):
word_6
=
forms
.
CharField
(
max_length
=
9
,
required
=
False
)
word_6
=
forms
.
CharField
(
max_length
=
9
,
required
=
False
)
login_string
=
forms
.
CharField
(
max_length
=
255
,
required
=
False
)
login_string
=
forms
.
CharField
(
max_length
=
255
,
required
=
False
)
def
build_code_phrase
(
self
,
cleaned_word_data
=
[]):
"""Join form cleaned data into code_phrase"""
join_key
=
'-'
code_phrase
=
join_key
.
join
(
cleaned_word_data
)
return
code_phrase
def
sanitize_login_string
(
self
,
login_string
):
def
sanitize_login_string
(
self
,
login_string
):
"""Santizes the login string"""
"""Santizes the login string"""
#convert to lowercase and strip whitespace
#convert to lowercase and strip whitespace
...
...
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