Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
edulix committed Jun 23, 2023
1 parent f85be8b commit 2984a6b
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 11 deletions.
4 changes: 0 additions & 4 deletions iam/authmethods/m_dnie.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@

import json
from . import register_method
from utils import genhmac
from django.shortcuts import get_object_or_404, redirect
from django.conf import settings
from django.contrib.auth.models import User
from django.conf.urls import url
from django.db.models import Q
from django.http import Http404

from authmethods.utils import check_pipeline, give_perms
Expand Down
2 changes: 1 addition & 1 deletion iam/authmethods/m_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
from django.conf import settings
from django.contrib.auth.models import User
from utils import (
ErrorCodes,
constant_time_compare,
send_codes,
get_client_ip,
is_valid_url,
verify_admin_generated_auth_code
)
from ..utils import ErrorCodes
from . import register_method
from authmethods.utils import (
verify_children_election_info,
Expand Down
2 changes: 1 addition & 1 deletion iam/authmethods/m_email_otp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
from django.db.models import Q
from django.contrib.auth.models import User
from utils import (
ErrorCodes,
constant_time_compare,
send_codes,
get_client_ip,
is_valid_url,
verify_admin_generated_auth_code,
)
from ..utils import ErrorCodes
from . import register_method
from authmethods.utils import (
verify_children_election_info,
Expand Down
2 changes: 1 addition & 1 deletion iam/authmethods/m_emailpwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import json
import logging
from django.contrib.auth.models import User
from ..utils import ErrorCodes
from . import register_method

from utils import (
ErrorCodes,
verify_admin_generated_auth_code
)
from authmethods.utils import (
Expand Down
2 changes: 1 addition & 1 deletion iam/authmethods/m_openidconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

from . import register_method

from ..utils import ErrorCodes
from utils import (
ErrorCodes,
verify_admin_generated_auth_code
)
from authmethods.utils import (
Expand Down
2 changes: 1 addition & 1 deletion iam/authmethods/m_pwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

import json
import logging
from ..utils import ErrorCodes
from . import register_method
from django.contrib.auth.models import User
from django.conf.urls import url

from utils import (
ErrorCodes,
verify_admin_generated_auth_code
)
from authmethods.utils import (
Expand Down
2 changes: 1 addition & 1 deletion iam/authmethods/m_sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from django.conf import settings
from django.db.models import Q
from django.contrib.auth.models import User
from ..utils import ErrorCodes
from utils import (
ErrorCodes,
constant_time_compare,
send_codes,
get_client_ip,
Expand Down
2 changes: 1 addition & 1 deletion iam/authmethods/m_sms_otp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from django.conf import settings
from django.db.models import Q
from django.contrib.auth.models import User
from ..utils import ErrorCodes
from utils import (
ErrorCodes,
constant_time_compare,
send_codes,
get_client_ip,
Expand Down
1 change: 1 addition & 0 deletions iam/authmethods/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from captcha.decorators import valid_captcha
from contracts import CheckException, JSONContractEncoder
from utils import (
ErrorCodes,
json_response,
get_client_ip,
constant_time_compare,
Expand Down

0 comments on commit 2984a6b

Please sign in to comment.