mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
quality: unused import, missing import
This commit is contained in:
parent
24741de4d9
commit
9a4b0e422d
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ import jwt
|
|||
import logging
|
||||
import ldap
|
||||
import ldap.sasl
|
||||
import datetime
|
||||
import base64
|
||||
import os
|
||||
import hashlib
|
||||
|
@ -142,7 +141,7 @@ class Authenticator(BaseAuthenticator):
|
|||
os.system(f'touch "{session_file}"')
|
||||
|
||||
def get_session_cookie(self, decrypt_pwd=False):
|
||||
from bottle import request
|
||||
from bottle import request, response
|
||||
|
||||
try:
|
||||
token = request.get_cookie("yunohost.portal", default="").encode()
|
||||
|
|
Loading…
Add table
Reference in a new issue