Jump to content

Pre-register employer module


Recommended Posts

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 by ESPON (see edit history)

Share this post


Link to post
Share on other sites

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 by tapanda.gr (see edit history)

Share this post


Link to post
Share on other sites

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 by ESPON (see edit history)

Share this post


Link to post
Share on other sites

:)

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

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More