86a06be2a3
Fix User::_from_dict() not setting internal name and email.
2025-05-15 10:56:11 +02:00
7282cd782d
Fix UserManager::_notification() switch fallthroughs.
2025-05-14 23:42:42 +02:00
4c0284f595
Update links in the docs. Pt. 4.
2025-05-12 20:32:32 +02:00
5f69ee9385
Re-extracted class docs.
2025-05-12 11:16:22 +02:00
4e1bcca4e4
Fix missing tag in UserPasswordResetWebPage's docs.
2025-05-12 11:10:28 +02:00
f12070cd3e
Re-extracted class docs.
2025-05-12 11:09:38 +02:00
89ec38bdc6
UserManagerDB now can update it's tables to the newer format.
2025-05-12 11:08:45 +02:00
882d1903a4
Added missing user locks.
2025-05-12 07:43:50 +02:00
4ea522cf0c
Include cleanups in UserWebPages.
2025-05-12 00:17:53 +02:00
85bfbec908
Remove unneeded comments in UserSettingsWebPage.
2025-05-12 00:16:20 +02:00
8bd3cfbf32
Set maximum password length of 256 in UserSettingsWebPage aswell.
2025-05-12 00:15:32 +02:00
be0ea55db8
Remove unneeded comments in UserLoginWebPage.
2025-05-12 00:13:25 +02:00
4c0f040ce7
Also set a maximum password length of 256 in UserLoginWebPage.
2025-05-12 00:12:43 +02:00
ce26870208
Remove now unneeded comment.
2025-05-12 00:11:55 +02:00
03802d0047
Set maximum password length in UserRegisterWebPage just for good measure (256).
2025-05-12 00:11:29 +02:00
65ca03eacc
Docs for the UserWebPages.
2025-05-12 00:07:37 +02:00
ae6722cf6e
Docs for UserModule.
2025-05-11 22:47:31 +02:00
544f65a522
Docs for the UserManager implementations.
2025-05-11 22:40:26 +02:00
9ded680a42
Remove unneeded #if. Also comment.
2025-05-11 20:07:31 +02:00
aa6ed3911f
Docs for the new methods.
2025-05-11 20:00:02 +02:00
5266b791d5
Updated the UserManagers to use the new internal name and email. Also made sure to call the base _create_user in all UserManagers.
...
- Internal name and email is used for lookups, so capitalization
automatically won't matter.
2025-05-11 19:55:36 +02:00
034a1b4e1a
Added internal user name and email support for Users.
2025-05-11 19:51:34 +02:00
56c05fe5d5
Use the owner UserManager when saving Users.
2025-05-11 18:56:21 +02:00
e5629e2a1b
Store the owner UserManager in User as an ObjectID.
2025-05-11 18:49:11 +02:00
704cea8354
Docs for the new methods.
2025-05-11 18:42:47 +02:00
066e88e336
Store the owner UserManager in User.
2025-05-11 18:37:59 +02:00
5c752900dd
Docs for UserManager.
2025-05-11 18:25:38 +02:00
31dd5d436c
Print an error if more than one UserManagers are trying to become the global instance.
2025-05-11 14:57:18 +02:00
a2309aa272
Now UserManagers have a register_as_global property. A manager will only try to set itself as the global manager if it's set to true (default).
2025-05-11 14:51:57 +02:00
4016579f23
Docs for UserDB.
2025-05-11 14:29:22 +02:00
272aeb775d
Don't use the changed signal to get a User to save itself.
2025-05-11 14:23:39 +02:00
b770c07a32
Always just defer call to the active UserManager or error in UserDB.
...
- Having an optional separate User list in UserDB when there is no
UserManager can lead to subtle bugs, so it got removed.
- It also had other limitations, like it was not possible to setup Users
properly, which could also lead to subtle bugs.
2025-05-11 14:10:32 +02:00
d8aa3140e1
Removed unused enum from User.
...
Note that WebPermission had the same enum if needed.
2025-05-11 11:53:15 +02:00
ebab8f1e0c
Docs for the User class.
2025-05-11 11:50:32 +02:00
b438b2b35a
Improve comment.
2025-05-11 11:50:20 +02:00
da142951ec
Re-extracted class docs.
2025-05-11 08:49:52 +02:00
7c109ad4a0
Added read_try_lock and write_try_lock to User and UserModule.
2025-05-11 08:48:41 +02:00
516236de23
Added some comments to User.
2025-05-11 08:42:32 +02:00
0b56f22f87
Use module names instead of indexes if they are available in User::_from_dict() and User::_to_dict().
2025-05-11 08:26:55 +02:00
abd7a0660e
Write and read lock modules in User::_to_dict() and User::_from_dict().
2025-05-11 08:20:07 +02:00
0e79057d11
Guard against bad indexes in User::_from_dict().
2025-05-04 20:24:42 +02:00
45f2f77a58
Re-extracted class docs.
2025-05-03 22:12:14 +02:00
7937fb6cae
Disable internal process for UserManagerFile. It's not needed anymore.
2025-05-03 21:11:41 +02:00
3894d36ad3
Fix User::_from_dict() using wrong dictionary keys.
2025-05-03 20:53:47 +02:00
0927580e78
Fix saving files in UserManagerFile.
2025-05-03 20:51:16 +02:00
7ef5b152bc
Fix calling the new _create_user() method in UserManager.
2025-05-03 20:41:28 +02:00
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
ca1f9c7674
Improved UserManagerFile's internals.
2025-05-03 20:13:52 +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
8a1981d1b8
Fix calling the wrong method in UserManager.
2025-05-03 16:57:34 +02:00