Skip to content

Commit 1df4ceb

Browse files
committed
Development chapter
1 parent dae53a4 commit 1df4ceb

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ Here are all currently supported options.
4747

4848
Name | Description | Details
4949
--- | --- | ---
50-
**Allow display name change** | With this option enabled user can change its display name. The display name change is propagated to the database. | Optional.<br/>Default: false.<br/>Requires user's *Display name* column.
50+
**Allow display name change** | With this option enabled user can change its display name. The display name change is propagated to the database. | Optional.<br/>Default: false.<br/>Requires: user *Display name* column.
5151
**Allow password change** | Can user change its password. The password change is propagated to the database. See [Hash algorithms](#hash-algorithms). | Optional.<br/>Default: false.
5252
**Use cache** | Use database query results cache. The cache can be cleared any time with the *Clear cache* button click. | Optional.<br/>Default: false.
5353
**Hashing algorithm** | How users passwords are stored in the database. See [Hash algorithms](#hash-algorithms). | Mandatory.
54-
**Email sync** | Sync e-mail address with the Nextcloud.<br/>- *None* - Disables this feature. This is the default option.<br/>- *Synchronise only once* - Copy the e-mail address to the Nextcloud storage if its not set.<br/>- *Nextcloud always wins* - Always copy the e-mail address to the database. This updates the user table.<br/>- *SQL always wins* - Always copy the e-mail address to the Nextcloud storage. | Optional.<br/>Default: *None*.<br/>Requires user's *Email* column.
54+
**Email sync** | Sync e-mail address with the Nextcloud.<br/>- *None* - Disables this feature. This is the default option.<br/>- *Synchronise only once* - Copy the e-mail address to the Nextcloud storage if its not set.<br/>- *Nextcloud always wins* - Always copy the e-mail address to the database. This updates the user table.<br/>- *SQL always wins* - Always copy the e-mail address to the Nextcloud storage. | Optional.<br/>Default: *None*.<br/>Requires: user *Email* column.
5555
**Home mode** | User storage path.<br/>- *Default* - Let the Nextcloud manage this. The default option.<br/>- *Query* - Use location from the user table pointed by the *home* column.<br/>- *Static* - Use static location. The `%u` variable is replaced with the username of the user. | Optional<br/>Default: *Default*.
5656
**Home Location** | User storage path for the `static` *home mode*. | Mandatory if the *Home mode* is set to `Static`.
5757

@@ -71,7 +71,7 @@ Name | Description | Details
7171

7272
#### Group table
7373

74-
Group definitions table.
74+
The group definitions table.
7575

7676
Name | Description | Details
7777
--- | --- | ---
@@ -153,7 +153,8 @@ Hashing algorithm: Unix (Crypt)
153153

154154
It is very easy to integrate Nextcloud with JHipster.
155155

156-
Follow the Using the Database instructions in [Using Jhipster in development](http://www.jhipster.tech/development/) to configure your database. Assume you chose MySQL as JHipster database.
156+
Follow the Using the Database instructions in [Using Jhipster in development](http://www.jhipster.tech/development/)
157+
to configure your database. Assume you chose MySQL as JHipster database.
157158
In the Nextcloud user table settings of SQL Backends, configure it as:
158159
```
159160
User table: jhi_users
@@ -170,13 +171,16 @@ TODO
170171

171172
## Development
172173

173-
#### Add new database support
174+
#### New database driver support
174175

175-
TODO
176-
177-
#### Add new hashing algorithm
176+
Add a new class in the `OCA\UserSQL\Platform` namespace which extends the `AbstractPlatform` class.
177+
Add this driver in `admin.php` template to `$drivers` variable and in method `getPlatform(Connection $connection)`
178+
of `PlatformFactory` class.
178179

179-
TODO
180+
#### New hashing algorithm support
181+
182+
Create a new class in `OCA\UserSQL\Crypto` namespace which implements `IPasswordAlgorithm` interface.
183+
Do not forget to write unit tests.
180184

181185
### Acknowledgments
182186

0 commit comments

Comments
 (0)