aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/users.ts
Commit message (Collapse)AuthorAgeFilesLines
* provide more schema examples in openapi specRigel Kent2021-05-111-0/+1
|
* Fix lintChocobozzz2021-02-011-1/+1
|
* Add ability to update plugin authChocobozzz2021-02-011-1/+2
|
* Upgrade sequelize to v6Chocobozzz2020-12-091-13/+12
|
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-071-25/+30
|
* Add admin view to manage commentsChocobozzz2020-11-161-0/+1
|
* Check live duration and sizeChocobozzz2020-11-091-1/+1
|
* Make channelName optionnal in tests only and validatorskimsible2020-08-111-14/+11
| | | | | | | | Fix tests channel displayName Make channelName in createUser optionnal on server side to not break api Fix auto channelName with createUser in tests
* Add validator channelName for create-user apikimsible2020-08-111-0/+17
|
* add check-params test for user listRigel Kent2020-07-031-2/+1
| | | | fixes #2918
* add blocked filter in users list to filter banned usersRigel Kent2020-07-021-0/+16
| | | | fixes #2914
* Split types and typingsChocobozzz2020-06-181-1/+1
|
* Fix external auth email/password updateChocobozzz2020-05-201-2/+7
| | | | Also check if an actor does not already exist when creating the user
* Add overview of a user's actions in user-edit (#2558)Rigel Kent2020-03-271-4/+5
|
* Creating a user with an empty password will send an email to let him set his ↵John Livingston2020-02-171-1/+2
| | | | | | | | | | | | | | | | password (#2479) * Creating a user with an empty password will send an email to let him set his password * Consideration of Chocobozzz's comments * Tips for optional password * API documentation * Fix circular imports * Tests
* Move to eslintcontainChocobozzz2020-02-031-4/+3
|
* (plugins) adding signup scope and init hook, modifying ↵Rigel Kent2019-11-251-1/+2
| | | | ensureUserRegistrationAllowed allowedParams
* Add plugin hook on registrationChocobozzz2019-10-251-3/+14
|
* Update server dependenciesChocobozzz2019-10-211-1/+2
|
* Try to fix testsChocobozzz2019-09-241-1/+6
|
* fix a few typos (#2141)Lukas Winkler2019-09-231-1/+1
| | | | | | | | * fix a few typos * apply changes to original files instead * additional correction
* Add welcome modalChocobozzz2019-09-051-0/+7
|
* Fix buildChocobozzz2019-08-231-1/+1
|
* Merge branch 'release/1.4.0' into developChocobozzz2019-08-221-3/+8
|\
| * Fix user creation by moderatorsChocobozzz2019-08-221-3/+8
| |
* | Stronger model typingsChocobozzz2019-08-191-2/+3
|/
* Moderators can only manage usersChocobozzz2019-07-301-33/+39
|
* Fix scheduled privacy and verify email validationsChocobozzz2019-07-251-2/+2
|
* Fix express validatorChocobozzz2019-07-251-4/+3
|
* Refactor middleware helpersChocobozzz2019-07-241-2/+3
|
* Add peertube plugin index website modelsChocobozzz2019-07-241-2/+3
|
* WIP plugins: add theme supportChocobozzz2019-07-241-0/+4
|
* Add language filters in user preferencesChocobozzz2019-06-191-1/+4
|
* Add ability to change email in clientChocobozzz2019-06-111-1/+1
|
* Handle email update on serverChocobozzz2019-06-111-10/+29
|
* Improve registrationChocobozzz2019-06-071-2/+10
| | | | | | | * Add ability to set the user display name * Use display name to guess the username/channel name * Add explanations about what is the purpose of a username/channel name * Add a loader at the "done" step
* Multi step registrationChocobozzz2019-05-291-0/+6
|
* Add ability to specify channel on registrationChocobozzz2019-05-281-0/+22
|
* Add user adminFlagsChocobozzz2019-04-151-0/+3
|
* Add check params account ratings testsChocobozzz2019-04-091-1/+0
|
* Add /accounts/:username/ratings endpoint (#1756)Yohan Boniface2019-04-091-1/+17
| | | | | | | | | | | | * Add /users/me/videos/ratings endpoint * Move ratings endpoint from users to accounts * /accounts/:name/ratings: add support for rating= and sort= * Restrict ratings list to owner * Wording and better way to ensure current account
* Cleanup invalid rates/comments/sharesChocobozzz2019-03-191-1/+1
|
* Cleanup express locals typingsChocobozzz2019-03-191-6/+6
|
* Does existChocobozzz2019-03-191-2/+2
|
* Cleanup reset user password by adminChocobozzz2019-02-111-0/+2
| | | | And add some tests
* Fix users update me param validationChocobozzz2018-12-181-4/+7
|
* enable email verification by admin (#1348)Josh Morel2018-11-211-0/+1
| | | | | | | | | | | | | * enable email verification by admin * rename/label to set email as verified to be more explicit that admin is not sending another email to confirm * add update user emailVerified check-params test * make user.model emailVerified property required
* Check current password on server sideChocobozzz2018-09-261-2/+19
|
* Optimize SQL requests of watch page API endpointsChocobozzz2018-09-191-1/+1
|
* Users can change ownership of their video [#510] (#888)Gaëtan Rizio2018-09-041-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [#510] Create a new route to get the list of user names To be able to transfer ownership to a user, we need to be able to select him from the list of users. Because the list could be too big, we add a autocomplete feature. This commit does the following: * Add a API endpoint to get a list of user names by searching its name * [#510] The user can choose the next owner of the video To be able to transfer ownership to a user, we need the owner to be able to select the user. The server can autocomplete the name of the user to give the ownership. We add a dialog for the user to actually select it. This commit does the following: * Create a modal for the owner to select the next one * Opens this modal with a button into the menu *more* * Make the dependency injection * [#510] When the user choose the next owner, create a request in database For the change of ownership to happen, we need to store the temporary requests. When the user make the request, save it to database. This commit does the following: * Create the model to persist change ownership requests * Add an API to manage ownership operations * Add a route to persist an ownership request * [#510] A user can fetch its ownership requests sent to him To be able to accept or refuse a change of ownership, the user must be able to fetch them. This commit does the following: * Add an API to list ownership for a user * Add the query to database model * [#510] A user can validate an ownership requests sent to him - server The user can accept or refuse any ownership request that was sent to him. This commit focus only on the server part. This commit does the following: * Add an API for the user to accept or refuse a video ownership * Add validators to ensure security access * Add a query to load a specific video change ownership request * [#510] A user can validate an ownership requests sent to him - web The user can accept or refuse any ownership request that was sent to him. This commit focus only on the web part. This commit does the following: * Add a page to list user ownership changes * Add actions to accept or refuse them * When accepting, show a modal requiring the channel to send the video * Correct lint - to squash * [#510] PR reviews - to squash This commit does the following: * Search parameter for user autocompletion is required from middleware directly * [#510] PR reviews - to squash with creation in database commit This commit does the following: * Add the status attribute in model * Set this attribute on instance creation * Use AccountModel method `loadLocalByName` * [#510] PR reviews - to squash with fetch ownership This commit does the following: * Add the scope `FULL` for database queries with includes * Add classic pagination middlewares * [#510] PR reviews - to squash with ownership validation - server This commit does the following: * Add a middleware to validate whether a user can validate an ownership * Change the ownership status instead of deleting the row * [#510] PR reviews - to squash with ownership validation - client This commit does the following: * Correct indentation of html files with two-spaces indentation * Use event emitter instead of function for accept event * Update the sort of ownership change table for a decreasing order by creation date * Add the status in ownership change table * Use classic method syntax * code style - to squash * Add new user right - to squash * Move the change to my-account instead of video-watch - to squash As requested in pull-request, move the action to change ownership into my videos page. The rest of the logic was not really changed. This commit does the following: - Move the modal into my video page - Create the generic component `button` to keep some styles and logic * [#510] Add tests for the new feature To avoid regression, we add tests for all api of ownership change. This commit does the following: - Create an end-to-end test for ownership change - Divide it to one test per request * [#510] Do not send twice the same request to avoid spam We can send several time the same request to change ownership. However, it will spam the user. To avoid this, we do not save a request already existing in database. This commit does the following: - Check whether the request exist in database - Add tests to verify this new condition * [#510] Change icons Change icons so they remains logic with the rest of the application. This commit does the following: - Add svg for missing icons - Add icons in `my-button` component - Use these new icons * [#510] Add control about the user quota The user should be able to accept a new video only if his quota allows it. This commit does the following: - Update the middleware to control the quota - Add tests verifying the control * Correct merge - Use new modal system - Move button to new directory `buttons` * PR reviews - to squash