Zubrag.com
July 19, 2018, 05:00:39 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: User approval before allowing access to a protected page  (Read 3240 times)
saktiyantra
Newbie
*
Posts: 2


« on: December 03, 2015, 04:25:20 AM »

Hi,

Thanks for the script. I need advice on how we as admins/managers, can approve/disapprove a user before he/she can access a protected page. Right now a user can immediately access a protected page on signing up and then logging in with the username/password, without any approval from the site manager.

Thanks,

Saktiyantra

Logged
saktiyantra
Newbie
*
Posts: 2


« Reply #1 on: December 05, 2015, 03:52:09 AM »

Hi,

I found a way to work around this. We will need to create 2 pages.

1) A page (which will have the protection string) which will contain text informing the user that his credentials will need to be approved before he can access the protected page.

2) A page (which will have the protection string) which will contain the actual content that needs protection.

So now if a user tries to login with his username & password (immediately after signing up), page 1 will come up.

We have enough time in the meantime to check his credentials and if hes approved, we can set the redirection URL in the managers.php page to page no 2.

Thanks again for the script,

Saktiyantra.


Logged
zubrag
Administrator
Hero Member
*****
Posts: 787


WWW
« Reply #2 on: December 09, 2015, 11:50:49 PM »

Thanks for sharing! Please backup a file that contains signed up users list. Some users reported that file sometimes get cleared and can loose all users. Unfortunately, this is not yet fixed. So backup users file just in case this happens you'll have a backup.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC