Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
communications-backbone
Commits
73f478a0
Unverified
Commit
73f478a0
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
chore: remove token prints
parent
0884eb49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
models/token.py
models/token.py
+0
-2
No files found.
models/token.py
View file @
73f478a0
...
...
@@ -49,7 +49,6 @@ class TokenModel():
'expiry'
:
expiry
}
token
=
self
.
fernet
.
encrypt
(
json
.
dumps
(
token_content
).
encode
()).
decode
()
print
(
f
"Encode:
{
token
}
"
)
return
{
'token'
:
token
,
'expiry'
:
expiry
...
...
@@ -59,7 +58,6 @@ class TokenModel():
def
decrypt
(
self
,
token
):
try
:
print
(
f
"Decode:
{
token
}
"
)
content
=
json
.
loads
(
self
.
fernet
.
decrypt
(
token
.
encode
()).
decode
())
return
content
except
(
InvalidToken
,
KeyError
)
as
e
:
...
...
This diff is collapsed.
Click to expand it.
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