Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails_admin: control on admin users signup

I installed rails_admin first with model name as rails_admin_user. The first time I logged in, I clicked 'sign up' and created admin user account. Now every time I want to login; there is a 'sign up' link still there.

Seems that anyone can create account for admin interface of rails_admin.

If this is true, please let me know how to restrict admin user creation process.

like image 991
Ninad Avatar asked Jan 21 '23 16:01

Ninad


1 Answers

Hey, here is how you do it. Go to your user or member model, depending on how you set up devise, and remove registerable from devise attributes. This way the sign up link will disappear.

like image 90
xbora Avatar answered Jan 29 '23 10:01

xbora