I’m new in strapi and i need to change admin registration form.I found information how to chage the front part of registration,but i need change input data validation in back-end.How i can do it?Also where i can find back-end part of admin registartion?
Hello,
All the core front/backend parts of the Admin panel are located in this package: strapi/packages/strapi-admin at master · strapi/strapi · GitHub
While we do support extending the frontend part, currently there is no extensions system for the backend and the only choice is to fork the package (meaning you will need to maintain it and keep it up to date through every version major or minor).
We have an open GitHub issue to move the strapi-admin
package into a plugin to allow for modification of the backend part here:
opened 10:23AM - 27 Dec 19 UTC
type: feature request
severity: medium
<!--
Hello 👋 Thank you for submitting a feature request.
We are using Produc… tBoard to manage our roadmap and feature requests.
Can you please submit your feature request here: https://portal.productboard.com/strapi
-->
- [ ] **I have created my request on the Product Board before I submitted this issue**
- [x] **I have looked at all the other requests on the Product Board before I submitted this issue**
**Please describe your feature request:**
Allowing for backend modifications of the [strapi-admin](https://github.com/strapi/strapi/tree/master/packages/strapi-admin) Should be something to consider specifically related to the adminUI administrators model to customize it. This is a similar concept to the users-permissions extensions for the users model.
Previously I was using a hook to make these changes: https://github.com/canonn-science/CAPIv2-Strapi/blob/production/hooks/admin-model/index.js
```javascript
const _ = require('lodash');
module.exports = () => {
return {
async initialize() {
await _.merge(strapi.admin.models.administrator, {
connection: 'users'
});
},
};
};
```
I did this as a "hacky" solution to to change the database connection used for this model, but as of beta.18 this method appears to be broken. I have also attempted to set this via the bootstrap file but my guess is this happens on initial bootup of Strapi so any changes after wouldn't really matter.
The admin itself in my opinion should be considered a "plugin" in itself as in theory you could run Strapi without the admin at all.
I did not create a product board entry for this as it seems like such a small change I'm not sure if it is something that should be included on there.
1 Like