Hello CyberPanel Community,
I know this doesn’t have anything to do with CyberPanel. It is more WordPress related.
If anyone can point me in the right direction, it would be so kind of you.
Here’s what I’m trying to achieve.
I have a list of employees. It has their Employee Numbers, National Identity Card (NIC) numbers and Names.
So, I’m trying to design an online portal using WordPress.
First, all these employees must sign up to use the portal. When signing up, I need to ensure only the organisation’s employees are signing up. Not any outsiders.
So, to achieve this, I’m thinking of using their Employee Number and NIC.
The sign-up form contains fields for both Employee number and NIC. When both fields are a match, the user can sign up. That’s what I need to achieve.
Do you have any idea on how to achieve this?
Thank you so much for all your help.
but you can do small goals with plugin
plugin custom login
you can modified the login tag and make them required
many plugin like that… but of course not too much available for free or suitable with your need
you can do it with php yes, but that results in you having a query to a remote/local database that contains all the employee numbers and NIC, which can lead to issues if said database/your website is hacked.
So let me suggest something else, why not only allow registrations from their corporate email address?
When registering, it only accepts emails for example:
And of course, they have to confirm their email address with a verification code sent.
That is how LinkedIn confirms that you belong to your company page, they ask for your corporate email and then you enter the verification code received.
In my opinion that would be the simplest way to do it, without having to “expose” more data
Thank You @MyIDKaTePe
Yeah, it seems I’m going to need a programmer.
TBH, I’m looking for a plugin. But, I did a lot of research and found nothing.
Thank you for your time
@tmoore Yeah, I think I have to go for this remote database solution.
Because not all the employees have cooperative emails.
You are correct, it would be the easiest way to make sure only the company’s employees are signing up.
What do you suggest if I go for this remote database thing?
Sorry, but this is new for me.
Thank you so much
already test a simple way ?
with addon login
You don’t actually need a remote database, you just need a table in your WP database that has had all of the numbers, etc. in it.
Then you can use something like Advanced Custom Fields, add the needed fields to the login form, and run some logic to check if the employee number exists and matches whatever else it needs to match when someone tries to register.
Hey @MyIDKaTePe Thank you.
But, WPForms might not work for me
Thank You @S4_Hosting
Well, this is more logical, and I’m going to try this.
Appreciate your time and help.
WordPress User Registration Plugin with Custom Fields by WPForms
just play with the tag
i was create Wordpress with 4 form
Name:(Full Name when register)
PassKey:(just like 2FA)
if it got 1 no match then login fail
if the Fullname are not Identic then Fail
And all done with wp form pro + the add-on