mirror of
https://github.com/nextcloud/preferred_providers.git
synced 2025-10-26 15:05:38 +01:00
No description
|
|
||
|---|---|---|
| .github | ||
| .tx | ||
| appinfo | ||
| css | ||
| img | ||
| js | ||
| l10n | ||
| lib | ||
| templates | ||
| tests | ||
| .gitignore | ||
| .php-cs-fixer.dist.php | ||
| composer.json | ||
| composer.lock | ||
| COPYING | ||
| Makefile | ||
| psalm.xml | ||
| README.md | ||
Preferred providers
This application allows external request of new accounts.
- Install and enable the application.
- Go to the preferred providers settings and keep your token in reach.
- Make a POST request to
/ocs/v2.php/account/request/YOURTOKENwith the{email: 'myawesomemail@nextcloud.com'}data.$.post('/ocs/v2.php/account/request/56300a2bf7e06894a5b59c1eb47f7460', {email:'myawesomemail@nextcloud.com'}).complete((response) => { console.log(JSON.parse(response.responseText).data.setPassword) }) - The server will accept or not the request and provide a link for the user login and password definition https://cloud.yourdomain.com/apps/preferred_providers/password/set/yourawesomemail@nextcloud.com/aipTgstNeenUXe20BJTH8
- Meanwhile a mail confirmation is sent to the user. He have 6h to confirm or his account will be disabled
- After 4, if you set up the
OCS-APIREQUESTheader, you will be redirected to anc://url with valid app-password token for your application. If not, you will be logged and redirected to the home page.
