6b5226c74a
Add IntegerIdMixin and export related classes
2022-05-05 08:32:02 +02:00
7093c9e38a
Make ID a generic instead of forcing UUIDs
2022-05-01 11:18:27 +02:00
e271cc1352
Revamp OAuth account model management
2022-04-29 15:21:52 +02:00
83ca318ceb
Harmonize schema variable naming to avoid confusions
2022-04-29 14:02:44 +02:00
923aeb970e
Use a generic Protocol model for User instead of Pydantic
2022-04-29 13:49:21 +02:00
18954cc7bd
Add simple solution to update of oauth with more consistent use of identifiers ( #953 )
2022-04-21 11:06:21 +02:00
7f6d038d91
Create a class helper to let configure the password hasher dynamically
2022-03-22 14:16:49 +01:00
533504634f
Improve dependencies typing
2022-01-15 11:08:49 +01:00
4d28d7d6ba
Fix typo in manager.py ( #791 )
...
successfull -> successful
2021-11-07 13:24:51 +01:00
9eb49482c7
Users now become unverified when email is changed ( #783 )
...
* Users now become unverified when email is changed
Occurs when updating user.email to a new value
* changed wording
2021-11-07 10:04:06 +01:00
872b85de03
Code Expression ( #1 ) ( #767 )
...
* Replace unused `for` index with underscore
* Use `items()` to directly unpack dictionary values
* Merge duplicate blocks in conditional
* Use `any()` instead of for loop
* Format __init__.py
2021-10-16 09:29:34 +02:00
b33371542f
Fixed bug with custom reset token audience.
...
When adding a custom reset token audience, we still use the default one in the creation of the JWT token instead of the custom one.
2021-09-23 12:54:13 +03:00
ab06778adf
Fix #733 : don't raise error when updating user with same email
2021-09-20 08:49:19 +02:00
69f18cff47
Put user_db_model as attribute of UserManager
2021-09-17 11:24:49 +02:00
018771cf73
Add manager docstrings
2021-09-15 16:00:58 +02:00
de86456af2
Add some manager tests
2021-09-15 15:20:28 +02:00
5cba969679
Refactor verify logic into manager
2021-09-15 14:36:04 +02:00
3bdae94869
Refactor OAuth logic into manager
2021-09-15 11:57:17 +02:00
9673e0a5fd
Move on_after_update to manager
2021-09-15 09:34:28 +02:00
663b7405a7
Move forgot/reset password logic to manager
2021-09-15 09:13:11 +02:00
38d4aed817
Move on_after_register to manager
2021-09-14 15:02:17 +02:00
8967138375
Inject a user manager dep callable directly to FastAPIUsers
2021-09-14 14:39:59 +02:00
480a6bc4df
Move validate_password into UserManager
2021-09-14 14:01:57 +02:00
fdc8e54253
Improve generic typing
2021-09-14 11:53:43 +02:00
dade8c263d
Revamp implementation with a manager layer and db class as dependency callable
2021-09-14 11:12:34 +02:00