...
Disabling the user profile
...
Config path | Default value | Description | |
---|---|---|---|
Setting 1 | $features.editProfile | true | Wether user can edit its profil or not by clicking on its name (in the main menu) |
Modifying user profile
User profile behaviour and display is set in the file profile.json
at the root of the configuration folder.
...
Edit the property avatar.userCanEdit
of the file profile.json
with false
.
Config path | Default value | Description | |
---|---|---|---|
Avatar setting | $profile.avatar.userCanEdit | true | Wether a user can modify its avatar or not |
Modifying avatar’s subtitle :
...
Config path | Default value | Description | |
---|---|---|---|
Avatar setting | $profile.avatar.displayNameFields | [ “name” ] | As |
Password setting |
Disabling password changes :
...
Config path | Default value | Description | |
---|---|---|---|
Password setting | $profile.canEditPassword | true | Wether user can change its password or not |
Redirection after password change :
Config path | Default value | Description | |
---|---|---|---|
Redirect setting | $profile.redirectAfterPasswordReset | “landing” | Change where the user should be redirected after password change |
...
. |
...
You must use a known path (like |
Handle form fields :
You can decide which fields are shown an their order. For most of them you can configure if they are readonly or editable.
Config path | Default value | Description | |
---|---|---|---|
Form setting | $profile.editableFields | [ “firstname”, “lastname”, { “field”: “email”, “type”: “email”, “readonly”: false }, “bolang” ] | To change the displayed fields |
...
. |
...
Available fields are :
If you pass a string, the field will be of type text and editable by default. If you pass an object you can configure the type of the field and its |
Putting : { field: "email", type: "email, readonly: true }
will create an input of type email and disallow the user to change its email.
Note that the To remove a field from the display you’ll have to remove it from the configuration. To change the order of the fields, move their position inside the aray. |