View Full Version : User Login fail due to credentials
zanimul379168
06-22-2010, 05:15 PM
Hi All,
Sorry, the title and tags may be a bit misleading. What I want to do is set up a page that when a user, who is no longer a member in good standing, attempts to login - they are sent to a "Sorry you are no longer a member and must renew" page.
I'm having difficulty figuring where to put the code in place to do that and I'm wondering if I'm missing something in the configuration of the URSP package. Has anyone done this?
Jeff
Jason Byrnes
06-23-2010, 07:12 AM
how are you determining if they are in good standing or not?
zanimul379168
06-24-2010, 05:43 AM
In a very in-elegant way, since the community is small (less than 100) I'm resetting the "UserEmailVerified" to "0".
I do have plans on making it easier to maintain from an admin's perspective as the community could double in size. But in the name of expedience, I choose the brute force method.
Jason Byrnes
06-24-2010, 06:54 AM
when a user logs in, there is a show region on the profile page that will display if the email is not varified:
<?php if(!WA_Auth_RulePasses("Email Confirmed")){ // Begin Show Region ?>
<p>Your email address has not been verified.</p>
<form name="form1" method="post" action="">
<input type="submit" name="verify_button" id="verify_button" value="verify">
</form>
<?php } // End Show Region ?>
you could change the messaging here.
zanimul379168
06-24-2010, 07:05 AM
OK, makes sense. However an unverified user currently gets a 404 error, so I'm suspecting that there's an issue with the profile page.
Jason Byrnes
06-24-2010, 08:02 AM
what is the full URL to the Login page?
What is the URL in the address bar when you get the 404 page not found error?
In the WA_Globals/WA_Globas.php file, what have you set the $WAGLOBAL_Root_URL to?
zanimul379168
06-24-2010, 08:33 AM
http://stop-them.org/login.php
http://stop-them.org/users_Profile.php?accesscheck=/contracts.php
$WAGLOBAL_Root_URL = "http://www.stop-them.org" ;
zanimul379168
06-24-2010, 08:40 AM
Well, the root_url is most certainly a clue to part of the problem. I suspect I need to move the login page to directory that contains the users_profile.php file - or at least verify that all the links are pointing to the correct files.
Jason Byrnes
06-24-2010, 10:18 AM
yes, the login page should be in the same directory as the profile page.
the root URL should point to that directory as well.
if the profile page is at:
http://mydomian.com/userReg/users_profile.php
then the root URL must be set to:
http://mydomian.com/userReg/
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.