Commit Graph

32 Commits

Author SHA1 Message Date
Claus-Justus Heine
7da80d207a Implement ISearchableGroupBackend
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-08-22 12:59:23 +02:00
Claus-Justus Heine
639b9cf995 QueryProvider: use left joins and fix the use of the "disabled" column.
The code used union selects; left joins at least are easier to read. In
some places it was also not so clear that the WHERE part for the
disabled column really worked.

The query FIND_GROUP_USERS also needs to take the disabled column in to
account.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-08-22 12:59:23 +02:00
Claus-Justus Heine
df5a550fbd DataQuery: properly log exceptions.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-08-22 12:59:22 +02:00
Claus-Justus Heine
bb1f370e16 Fix \ArrayAccess type warnings
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-08-22 12:59:22 +02:00
Claus-Justus Heine
26930efc25 DateQuery: use try-catch around statement prepare.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-08-22 12:59:22 +02:00
Claus-Justus Heine
b39421d32d Selecting and counting users from the User-Group table needs DISTINCT to avoid duplicates.
In particular when using the catch-all group ("Default Group" setting)
the queries which count and select users from the User-Group table need
the "DISTINCT" option: the catch-all group is replaced by a '%'
wild-card in the query. As users may belong by design to more than one
group counting and selecting users comes out wrong. Even worse: the many
duplicates interfere with the paging logic of the user admin-settings.

Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2023-08-22 12:59:21 +02:00
Marcin Łojewski
49d1c76a61 Support Doctrine 3 2021-03-24 11:53:35 +01:00
Felix
204c5c5f0b MySQL over SSL
Signed-off-by: Felix <felix.nz@hotmail.de>
2020-06-08 17:07:55 +02:00
Marcin Łojewski
a483168890 Default group option. issue#107 2020-04-13 16:32:15 +02:00
Marcin Łojewski
7e9af00145 GID group column 2020-04-13 13:08:16 +02:00
Marcin Łojewski
e607f5c5d3 firstNonemptyProperty 2020-04-13 12:17:48 +02:00
Marcin Łojewski
c7e73f2fbb Merge branch 'master' of https://github.com/palmtown/user_sql into palmtown-master
# Conflicts:
#	lib/Backend/UserBackend.php
2020-04-13 11:47:47 +02:00
Marcin Łojewski
953dae293e issue#135 Allow email login 2020-03-29 22:08:43 +02:00
Brandon Lee
a4c9aa98e7 update search by GUID column error 2019-10-31 12:48:55 +00:00
Brandon Lee
9b3a48f063 update search by GUID 2019-10-31 12:46:59 +00:00
Brandon Lee
735c0d13fd commit 2019-10-22 13:57:31 +00:00
Brandon Lee
b4c210566d commit 2019-10-22 13:46:23 +00:00
Marcin Łojewski
1283fd68fc issue#95 - Do not include users which are disabled 2019-10-08 19:44:23 +02:00
Marcin Łojewski
a19144a254 issue#91 Find group by gid or groupname, find user by uid or display name or email 2019-10-08 18:38:51 +02:00
Marcin Łojewski
55797f0d56 merge feature into develop 2018-12-22 19:25:55 +01:00
Marcin Łojewski
1c1cd89bb2 Fix queries after tests 2018-12-22 19:01:37 +01:00
Marcin Łojewski
d5b5c36b1c issue#85 Revers active column checkbox 2018-12-22 11:07:31 +01:00
Marcin Łojewski
e089bef998 Add aliases to queries
issue#83 Error when same column names
2018-12-22 10:37:12 +01:00
Marcin Łojewski
0905096612 Issue#74 Case (in)sensitive login 2018-10-28 18:19:58 +01:00
Marcin Łojewski
9ab6df0f76 Issue#68 Get name from guid if not set 2018-10-13 11:45:24 +02:00
Marcin Łojewski
e14ca58571 Issue#67 Only changed columns in UPDATE queries 2018-10-07 14:38:41 +02:00
Marcin Łojewski
bb4b652a51 Fixed: Error when 'Display name' not set 2018-09-19 21:13:42 +02:00
Marcin Łojewski
ed37c7085d User quota from SQL 2018-07-09 19:59:01 +02:00
Marcin Łojewski
a2b65f144c Adding SALT from DB and new Algorithm to be connected with HumHub
https://github.com/nextcloud/user_sql/pull/42
2018-06-30 13:19:04 +02:00
Marcin Łojewski
a312ba8c47 User active column 2018-06-13 20:01:09 +02:00
Marcin Łojewski
29f1fa0730 Fix bugs + new screenshot 2018-06-13 09:47:18 +02:00
Marcin Łojewski
c1cc89f456 'lib' rewritten. 2018-03-25 20:57:31 +02:00