Skip to content

Commit 40a3590

Browse files
committed
use search user_exists instead of validators user_exists
1 parent 5509e8d commit 40a3590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ocfweb/login/ocf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import ocflib.account.utils as utils
88
import ocflib.account.validators as validators
9+
import ocflib.account.search as search
910
from django import forms
1011
from django.http import HttpRequest
1112
from django.http import HttpResponse
@@ -45,7 +46,7 @@ def login(request: HttpRequest) -> Union[HttpResponseRedirect, HttpResponse]:
4546

4647
try:
4748
if (
48-
validators.user_exists(username) and not
49+
search.user_exists(username) and not
4950
user_is_sorried(username) and
5051
utils.password_matches(username, password)
5152
):

0 commit comments

Comments
 (0)