Skip to content

Commit 6ad81a2

Browse files
committed
Removed unnecessary condition
1 parent fda1558 commit 6ad81a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lms/lmsweb/views.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ def login(login_message: Optional[str] = None):
109109
login_user(user)
110110
return get_next_url(next_page)
111111

112-
elif (
113-
user is None or not user.is_password_valid(password)
114-
or user.role.is_unverified
115-
):
112+
elif user is None or not user.is_password_valid(password):
116113
login_message = _('שם המשתמש או הסיסמה שהוזנו לא תקינים')
117114
error_details = {'next': next_page, 'login_message': login_message}
118115
return redirect(url_for('login', **error_details))

0 commit comments

Comments
 (0)