ESPON Posted February 5, 2020 Share Posted February 5, 2020 (edited) Hi! What is the best method to expose a module or an AdminController, without need to be logged as an employee? The goal is to make a pre-registration form for new employees in backoffice. After that, the admin mush validate. Thanks! Edited February 5, 2020 by ESPON (see edit history) Link to comment Share on other sites More sharing options...
Kogkalidis Posted February 6, 2020 Share Posted February 6, 2020 (edited) It's not a good idea to expose the admin UI to people you may not know their intentions. If I were you I would make a registration form somewhere in the front. The people that will submit the form will be disabled employees that you will have to manually approve or not. Edited February 13, 2020 by tapanda.gr (see edit history) Link to comment Share on other sites More sharing options...
ESPON Posted February 13, 2020 Author Share Posted February 13, 2020 (edited) Thanks! But I think it will be as exposed as login form, I mean, with the same control as Presta expose AdminLoginController... Once you let the user enter a value in a form or get it from the url you are exposed (in the frontend in the same way as in backoffice), so I still think it could be an option. thoughts? Edited February 13, 2020 by ESPON (see edit history) Link to comment Share on other sites More sharing options...
Kogkalidis Posted February 13, 2020 Share Posted February 13, 2020 I can't understand what you want to express in the reply message. Link to comment Share on other sites More sharing options...
ESPON Posted February 13, 2020 Author Share Posted February 13, 2020 when you say "...not a good idea to expose the admin UI..." We are all already exposing the admin UI by default: in the login process (AdminLoginController) as Prestashop uses an admin controller to manage login. So what is the problem having another controller to achieve pre-registration process? Almost the same process than login: 1.- Form 2.- Data 3.- Process and save in db Link to comment Share on other sites More sharing options...
Kogkalidis Posted February 13, 2020 Share Posted February 13, 2020 Yeah but this is a path that you only know (and should reveal it only to people you trust). You can make (a lot of) modifications and make UIs in the front office that - giving privileges to others - will enable them to work without knowing the admin path. Eg. Blogging with front form where any member will be able to submit a post. Link to comment Share on other sites More sharing options...
ESPON Posted February 14, 2020 Author Share Posted February 14, 2020 We miss the Helpers that we have in the backoffice. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now