mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
Запрет залогинивания уже залогининых
This commit is contained in:
@@ -51,7 +51,7 @@ bool InterfaceDataBaseLMS::AuthorizationInstructor(QString login, QString passwo
|
||||
|
||||
if(int id = selectInstructorID(login, password))
|
||||
{
|
||||
if(isArchivedInstructor(id))
|
||||
if(isArchivedInstructor(id) || isLoggedInInstructor(id))
|
||||
{
|
||||
transactionEnd();
|
||||
return false;
|
||||
@@ -179,7 +179,7 @@ bool InterfaceDataBaseLMS::AuthorizationTrainee(QString login, QString password,
|
||||
|
||||
if(int id = selectTraineeID(login, password))
|
||||
{
|
||||
if(isArchivedTrainee(id))
|
||||
if(isArchivedTrainee(id) || isLoggedInTrainee(id))
|
||||
{
|
||||
transactionEnd();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user