Commit Graph

12 Commits

Author SHA1 Message Date
e9e2e72665 Now UserManager::_create_user() has a User as a parameter.
This shoukld make it easier to customize user creation. Similar idea to
how TerrainWorld's _create_chunk() works.
2025-05-03 20:25:32 +02:00
fd13bb3c51 Now get_all_as_vector() in UserManager is not virtual anymore. Also removed other implementations.
- This had to be done as get_all_as_vector() cannot be customized by
scripts, and if an inherited UserManager needs to set up UserModules
this will cause issues later down the line.
- Other solutions like a user_setup() method could also work, but then
that would cause more individual (non-optimizable) lookups to db-based
backends (and likely others too), so this solution seems to be the best
currently.
2025-05-03 17:07:24 +02:00
14100c3ac0 Added a method to get all users from the UserDB and UserManagers. 2024-11-20 21:57:35 +01:00
e8cabe7657 Don't create any accounts in UserManagerDB::_create_default_entries(). 2024-07-18 08:09:11 +02:00
429575fab6 File copyright header updates pt8. 2023-12-18 00:18:53 +01:00
4faeb67438 Implemented getting users using their email from the UserDB. 2023-09-22 16:33:21 +02:00
56ae9e3734 Fix typos. 2023-09-22 16:21:37 +02:00
144d519258 Id should be valid only over 1 in UserManagerDB. 2022-12-18 18:42:09 +01:00
56fb104e14 Update logic in UserManagerDB, as the default user id is -1 now. 2022-12-18 13:16:58 +01:00
70b8c7c047 Fix connecting a signal to a non existent method in UserManagerDB. 2022-12-18 11:56:16 +01:00
e0b2f048c2 Cleaned up and added UserManagerDB to the build. 2022-07-24 16:26:23 +02:00
0eba7b461f Created UserManagerDB from UserController code. It's not yet in the build. 2022-07-22 10:16:49 +02:00