mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #994 from gradido/login_fix_is_exist_in_db
fix isExitInDb
This commit is contained in:
commit
584f1e54b8
@ -4,8 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d
|
|||||||
|
|
||||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||||
|
|
||||||
|
#### [1.5.1](https://github.com/gradido/gradido/compare/1.5.0...1.5.1)
|
||||||
|
|
||||||
|
- fix isExitInDb [`4c732b2`](https://github.com/gradido/gradido/commit/4c732b20e0c5591bde6b8c41b7c0f7adcc9b82e8)
|
||||||
|
- fix [`80228ef`](https://github.com/gradido/gradido/commit/80228ef842d4087ea4b80934b15b8112611e3e33)
|
||||||
|
|
||||||
#### [1.5.0](https://github.com/gradido/gradido/compare/1.4.0...1.5.0)
|
#### [1.5.0](https://github.com/gradido/gradido/compare/1.4.0...1.5.0)
|
||||||
|
|
||||||
|
> 15 October 2021
|
||||||
|
|
||||||
|
- v1.5.0 [`#986`](https://github.com/gradido/gradido/pull/986)
|
||||||
- default value for empty field [`#993`](https://github.com/gradido/gradido/pull/993)
|
- default value for empty field [`#993`](https://github.com/gradido/gradido/pull/993)
|
||||||
- fix language registriert [`#992`](https://github.com/gradido/gradido/pull/992)
|
- fix language registriert [`#992`](https://github.com/gradido/gradido/pull/992)
|
||||||
- Change the publisherId to nullable. [`#991`](https://github.com/gradido/gradido/pull/991)
|
- Change the publisherId to nullable. [`#991`](https://github.com/gradido/gradido/pull/991)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gradido-backend",
|
"name": "gradido-backend",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"description": "Gradido unified backend providing an API-Service for Gradido Transactions",
|
"description": "Gradido unified backend providing an API-Service for Gradido Transactions",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"repository": "https://github.com/gradido/gradido/backend",
|
"repository": "https://github.com/gradido/gradido/backend",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bootstrap-vue-gradido-wallet",
|
"name": "bootstrap-vue-gradido-wallet",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node run/server.js",
|
"start": "node run/server.js",
|
||||||
|
|||||||
@ -166,20 +166,19 @@ namespace model {
|
|||||||
auto session = cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER);
|
auto session = cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER);
|
||||||
Poco::Data::Statement select(session);
|
Poco::Data::Statement select(session);
|
||||||
int id;
|
int id;
|
||||||
select << "SELECT " << "id "
|
select << "SELECT " << "count(*) as id"
|
||||||
<< " FROM " << getTableName()
|
<< " FROM " << getTableName()
|
||||||
<< " WHERE " << fieldName << " = ?"
|
<< " WHERE " << fieldName << " = ?"
|
||||||
, Poco::Data::Keywords::into(id), Poco::Data::Keywords::useRef(fieldValue);
|
, Poco::Data::Keywords::into(id), Poco::Data::Keywords::useRef(fieldValue);
|
||||||
try {
|
try {
|
||||||
if (select.execute() >= 1) {
|
select.execute();
|
||||||
return true;
|
return id != 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Poco::Exception& ex) {
|
catch (Poco::Exception& ex) {
|
||||||
/*lock();
|
lock();
|
||||||
addError(new ParamError(getTableName(), "mysql error by isExistInDB", ex.displayText().data()));
|
addError(new ParamError(getTableName(), "mysql error by isExistInDB", ex.displayText().data()));
|
||||||
addError(new ParamError(getTableName(), "field name for select: ", fieldName.data()));
|
addError(new ParamError(getTableName(), "field name for select: ", fieldName.data()));
|
||||||
unlock();*/
|
unlock();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gradido",
|
"name": "gradido",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"description": "Gradido",
|
"description": "Gradido",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "git@github.com:gradido/gradido.git",
|
"repository": "git@github.com:gradido/gradido.git",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user