diff --git a/app/login.py b/app/login.py
index bb6a4f0a..750c8e40 100644
--- a/app/login.py
+++ b/app/login.py
@@ -117,6 +117,10 @@ if login is not None and password is not None:
USERS = sql.select_users(user=login)
for users in USERS:
+ if users[7] == 0:
+ print("Content-type: text/html\n")
+ print('
Your login is disabled
')
+ sys.exit()
if users[6] == 1:
if login in users[1]:
check_in_ldap(login, password)
@@ -125,7 +129,7 @@ if login is not None and password is not None:
send_cookie(login)
else:
print("Content-type: text/html\n")
- print('Somthing wrong :( I\'m sad about this, but try again!
')
+ print('Your login or password is incorrect
')
sys.exit()
print("Content-type: text/html\n")