Copy link to clipboard
Copied
I am wanting to build a login page and a registeration page. My question isn't how to build them, but rather is there a way to give permission for only certain people to login. My boss wants it to be restricted. Thanks for any help in advance!
If this is the case do not create a signup form on your site just a login page so that signup is not allowed for public only login and populate the login table yourself on the backend so that only people that you have 'signed up' are able to login.
Or as stated earlier use access levels or account activation. The user can signup but can not login until the account has been activated by the administrator. Or users can signup and login but can not see pages restricted to higher access level until a
...Copy link to clipboard
Copied
Yes, you set up a database with usernames and passwords. Only people with registered usernames and the right password are allowed in. That is, after all, the whole point of a login system - to restrict access to those with registered details.
Copy link to clipboard
Copied
The boss even wants it more restricted than that. I would like to know if there is a way to set it up for example where only our companies Legal people could sign up and login. If so, I am knew to this, could you please explain?
Copy link to clipboard
Copied
If this is the case do not create a signup form on your site just a login page so that signup is not allowed for public only login and populate the login table yourself on the backend so that only people that you have 'signed up' are able to login.
Or as stated earlier use access levels or account activation. The user can signup but can not login until the account has been activated by the administrator. Or users can signup and login but can not see pages restricted to higher access level until administrator sets their access level permission to view pages restricted to their access level.
Copy link to clipboard
Copied
Even better idea. Thanks again. The other reply was something to think about.
Copy link to clipboard
Copied
You can setup an account activation system where the user or administrator has to activate the account before the user is allowed to login. You can also develop access levels for users so users with certain access levels are allowed to enter areas permitted for their access level. Both methods involve a field in the database which is updated to allow access. For instance for account activation you can setup a table field in your DB for 'activated' default '0' and upon signup either user or administrator or both receive an email that takes you to an update record form that updates the activated field from '0' to '1' then conditional region in login form through query where 'activated' field = '1'
Copy link to clipboard
Copied
Thanks. I will give this a try. Cheers!