Andrew Camilleri
14e4d2d675
Make CSSThemeManager really only focus on theme ( #2457 )
...
* Make Settings Repository cache in memory
* Make use of SettingsRepo directly instead of CssThemeManager
* Completely remove CssThemeManager
2021-07-27 21:08:54 +09:00
Kukks
28da78fc78
Improve tests and small refactoring
2021-06-04 12:20:45 +02:00
Umar Bolatov
8731055786
Use UserNotFound instead of NotFound
2021-06-02 20:02:31 -07:00
Umar Bolatov
be05b6aa90
Specify correct return type on delete user methods
2021-06-02 20:02:31 -07:00
Umar Bolatov
0b4d94faf2
Remove unnecessary null check
2021-06-02 20:02:30 -07:00
Umar Bolatov
9f8f677125
Remove unused IsAdmin method
2021-06-02 20:02:30 -07:00
Umar Bolatov
949d6bf584
Replace admin check with CanModifyServerSettings authorization policy
2021-06-02 20:02:30 -07:00
Umar Bolatov
9fc2d2b76b
Remove CanDeleteUser constraint from "/api/v1/users/{userId}" endpoint
2021-06-02 20:02:29 -07:00
Umar Bolatov
d9935ada9d
Add "/api/v1/users/me" endpoint
2021-06-02 20:02:29 -07:00
Umar Bolatov
b4076b53e8
Add IsAdminUser method to UserService
2021-06-02 20:02:28 -07:00
Umar Bolatov
53c81918a5
Enable nullable reference checking in UsersController
2021-06-02 20:02:28 -07:00
Umar Bolatov
104092702a
Simplify DeleteUser method
2021-06-02 20:02:27 -07:00
Umar Bolatov
2ed8341403
Add IsRoleAdmin to user service
2021-06-02 20:02:26 -07:00
Umar Bolatov
e5a196918f
Add user service
2021-06-02 20:02:26 -07:00
Umar Bolatov
907ae760e0
Add CanDeleteUser policy
2021-06-02 20:02:25 -07:00
Umar Bolatov
fe107cd23f
Add DELETE action for api/v1/users endpoint
2021-06-02 20:02:22 -07:00
Dennis Reimann
e48d18279c
API: Fix behaviour after first admin signup ( #2150 )
...
Without updating the `FirstRun` setting it is not possible to login after signing up via the API. Otherwise the `HomeController.Index` action always redirects to the Registration page.
2020-12-17 12:27:01 +01:00
Andrew Camilleri
0652e30c30
GreenField: Notifications API ( #2055 )
...
* GreenField: Notifications API
This refactors notifications so that we dont have a bunch of duplicated direct access to db contexts in controllers and then introduces new endpoints to fetch/toggle seen/remove notifications of the current user.
* add tests + docs
* fix test
* pr changes
* fix permission json
2020-12-11 23:11:08 +09:00
Kukks
dfd7c6d4a6
add tests and reword setting
2020-12-08 08:12:29 +01:00
Kukks
c17b8e4d9e
Introduce Spam protection
...
fixes #1958
Adds 2 new options:
* Do not allow stores to use the email settings of the server. Instead, they would need to fill in the email settings in their own store
* Do not allow user creation through the API unless you are an admin.
Both are opt-in and turned off by default.
2020-12-04 08:08:05 +01:00
Kukks
179520a211
Plugins: Allow creation of independent DbContexts
...
This allows plugins to create custom dbcontexts, which would be namespaced in the scheme with a prefix. Migrations are supported too and the table would be prefixed too
2020-11-18 12:27:26 +01:00
Kukks
3d2b4cbfa8
Add Created date to user, add verified column in list and make user list use same model as modern lists
2020-10-05 13:00:15 +02:00
Dennis Reimann
8ba852084e
Users API: Add roles ( #1914 )
...
* API: Fix create user response model
* API: Add roles to user data
2020-09-16 14:17:33 +02:00
rockstardev
16eedf4153
Deducing if to perform update check from update url configuration
2020-08-03 03:17:04 -05:00
rockstardev
ce87d2e45c
Making use of options to initalize update check on first admin registration
2020-08-03 03:17:04 -05:00
Kukks
82af723f1f
Enable CORS and fix small doc error
2020-06-30 08:26:19 +02:00
rockstardev
f88c02cccd
Removing unused usings, readonly fields where possible
2020-06-28 22:07:48 -05:00
nicolas.dorier
51514252b6
Run dotnet format
2020-06-28 17:55:27 +09:00
nicolas.dorier
8dd6ecc0b8
Fix lightning implementation, docs and tests
2020-06-09 17:24:34 +09:00
Kukks
f313a5f221
GreenField: Handle status codes, error models consistently
2020-06-07 08:21:45 +02:00
Andrew Camilleri
d47e225dce
Fix email sending on registration crash ( #1454 )
2020-04-10 15:59:39 +09:00
nicolas.dorier
08abda1522
Restrict authentication to the APIController to GreenFieldAPIKeys
2020-03-27 13:34:03 +09:00
nicolas.dorier
afdee9d8a2
Move directories, rename controllers
2020-03-27 12:58:45 +09:00