Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Login Question

Explorer ,
May 21, 2009 May 21, 2009

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!

TOPICS
Server side applications
711
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , May 21, 2009 May 21, 2009

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

...
Translate
LEGEND ,
May 21, 2009 May 21, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 21, 2009 May 21, 2009

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 21, 2009 May 21, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 21, 2009 May 21, 2009
LATEST

Even better idea. Thanks again. The other reply was something to think about.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 21, 2009 May 21, 2009

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'

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 21, 2009 May 21, 2009

Thanks. I will give this a try. Cheers!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines