mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Валидация логинов
This commit is contained in:
@@ -11,6 +11,7 @@ kanban-plugin: board
|
|||||||
|
|
||||||
## Completed
|
## Completed
|
||||||
|
|
||||||
|
- [ ] Кнопка открытия Персональной карты обучаемого
|
||||||
- [ ] Блокировка авторизации не работает при входе в редакторы И/О
|
- [ ] Блокировка авторизации не работает при входе в редакторы И/О
|
||||||
- [ ] Добавить текущий статус задачи в "Проверке задачи" (AMM, FIM)
|
- [ ] Добавить текущий статус задачи в "Проверке задачи" (AMM, FIM)
|
||||||
- [ ] выдавать trainee_id при авторизации и вытащить передачу Trainee ID из тасок
|
- [ ] выдавать trainee_id при авторизации и вытащить передачу Trainee ID из тасок
|
||||||
@@ -56,15 +57,16 @@ kanban-plugin: board
|
|||||||
|
|
||||||
## GUI общие
|
## GUI общие
|
||||||
|
|
||||||
- [ ] Введение логина только латиницей
|
- [ ] Введение логина только латиницей и цифрами
|
||||||
- [ ] Унифицировать терминологию
|
- [ ] Унифицировать терминологию
|
||||||
|
- [ ] Текстовый поиск в задачах
|
||||||
|
|
||||||
|
|
||||||
## Замечания Кирилл
|
## Замечания Кирилл
|
||||||
|
|
||||||
- [ ] Создание БД из кода (если нет или слетела)
|
- [ ] Создание БД из кода (если нет или слетела)
|
||||||
- [ ] Кнопка открытия Персональной карты обучаемого
|
|
||||||
- [ ] Смена пароля админом. Старый никому не виден (парольная политика)
|
- [ ] Смена пароля админом. Старый никому не виден (парольная политика)
|
||||||
|
- [ ] Пароли хранить и пересылать в виде Хеша
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include <QRegExpValidator>
|
||||||
#include "dialogauthorizationinstructor.h"
|
#include "dialogauthorizationinstructor.h"
|
||||||
#include "ui_dialogauthorizationinstructor.h"
|
#include "ui_dialogauthorizationinstructor.h"
|
||||||
|
|
||||||
@@ -12,6 +13,8 @@ DialogAuthorizationInstructor::DialogAuthorizationInstructor(QWidget *parent) :
|
|||||||
|
|
||||||
ui->editPassword->setEchoMode(QLineEdit::EchoMode::Password);
|
ui->editPassword->setEchoMode(QLineEdit::EchoMode::Password);
|
||||||
|
|
||||||
|
ui->editLogin->setValidator(new QRegExpValidator(QRegExp("[A-Za-z\\d]+"), this));
|
||||||
|
|
||||||
#ifdef PROJECT_TYPE_DEBUG
|
#ifdef PROJECT_TYPE_DEBUG
|
||||||
ui->editLogin->setText("admin");
|
ui->editLogin->setText("admin");
|
||||||
ui->editPassword->setText("admin");
|
ui->editPassword->setText("admin");
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "dialogeditinstructor.h"
|
#include "dialogeditinstructor.h"
|
||||||
#include "ui_dialogeditinstructor.h"
|
#include "ui_dialogeditinstructor.h"
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QRegExpValidator>
|
||||||
|
|
||||||
DialogEditInstructor::DialogEditInstructor(QWidget *parent) :
|
DialogEditInstructor::DialogEditInstructor(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
@@ -14,6 +15,8 @@ DialogEditInstructor::DialogEditInstructor(QWidget *parent) :
|
|||||||
ui->editLogin->setProperty("mandatoryField", true);
|
ui->editLogin->setProperty("mandatoryField", true);
|
||||||
ui->editPassword->setProperty("mandatoryField", true);
|
ui->editPassword->setProperty("mandatoryField", true);
|
||||||
|
|
||||||
|
ui->editLogin->setValidator(new QRegExpValidator(QRegExp("[A-Za-z\\d]+"), this));
|
||||||
|
|
||||||
ui->btnOK->setEnabled(false);
|
ui->btnOK->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "dialogedittrainee.h"
|
#include "dialogedittrainee.h"
|
||||||
#include "ui_dialogedittrainee.h"
|
#include "ui_dialogedittrainee.h"
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QRegExpValidator>
|
||||||
|
|
||||||
DialogEditTrainee::DialogEditTrainee(QWidget *parent) :
|
DialogEditTrainee::DialogEditTrainee(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
@@ -13,6 +14,8 @@ DialogEditTrainee::DialogEditTrainee(QWidget *parent) :
|
|||||||
ui->editName->setProperty("mandatoryField", true);
|
ui->editName->setProperty("mandatoryField", true);
|
||||||
ui->editLogin->setProperty("mandatoryField", true);
|
ui->editLogin->setProperty("mandatoryField", true);
|
||||||
ui->editPassword->setProperty("mandatoryField", true);
|
ui->editPassword->setProperty("mandatoryField", true);
|
||||||
|
|
||||||
|
ui->editLogin->setValidator(new QRegExpValidator(QRegExp("[A-Za-z\\d]+"), this));
|
||||||
}
|
}
|
||||||
|
|
||||||
DialogEditTrainee::~DialogEditTrainee()
|
DialogEditTrainee::~DialogEditTrainee()
|
||||||
|
|||||||
Reference in New Issue
Block a user