Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Jun 09, 2001, 12:21 PM
kalico kalico is offline
Junior Member
 
Member Since: Jun 2001
Posts: 11
Im' having trouble getting a new user to add in.

At first, I created my own username, did some testing, fixed some bugs, etc. Then tried to click the "Add New User" link from the top of my Console, but it kept taking me to the main login page, where it said "no login" and I couldn't login because (according to the script) I was using an invalid name/pwd.

After clicking around through a few more links, I went back to the console and the Add New User link worked properly -- so somewhere in there it is correct. But then I couldn't get to it again. Every attempt I make to add a new user now fails, and in fact I can't even log in with my original username/pwd that worked to start with. It keeps telling me it doesnt' exist. I've restarted the browser, to no avail.

Any help?

Marci



advertisement
  #2  
Old Jun 09, 2001, 12:48 PM
mggodwin mggodwin is offline
New Member
 
Member Since: Jun 2001
Posts: 1
I'm having a similar problem. I have made no modifications to the code yet when I click add new user, I'm taken back to the screen I clicked it on (essentially, the browser refreshes the screen). I've checked file/directory permissions, etc. and everything looks right.

Mike

Thanks for this!
Angelique67, punkybrewster6k
  #3  
Old Jun 09, 2001, 01:09 PM
kalico kalico is offline
Junior Member
 
Member Since: Jun 2001
Posts: 11
Hmmm. This looks like a great scipt. I hope we can put our heads together and get it working.

I just discovered that I can access the new user routine directly this way:

http://www.kalico.net/cgi-bin/oj/oj.cgi?auth=adduser

Now to figure out how to correct the script itself.....

I can also get to the login screen this way: http://www.kalico.net/cgi-bin/oj/oj.cgi?auth=login

But when I try to login with the username I created, it still won't authenticate. Take that back...it will authenticate one of my usernames, but not the other. (The first one I created doesn' work, the second one does.) And I *did* logoff between.

And now the link to Add New User goes to Add New Entry page instead -- even tho the URL ends in auth=adduser. WIERD!!!

Marci

Thanks for this!
Angelique67
  #4  
Old Jun 10, 2001, 07:39 PM
DocJohn's Avatar
DocJohn DocJohn is offline
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

This problem is fixed by replacing the entire "Main" section at the beginning of oj.cgi:

# ----------------------------------------------
# Main
# ----------------------------------------------

sub main {

$| ; # Flush Output Right Away

$userid = $in{'username'}; $pw = $in{'password'};
$in{'userid'} = $userid; $in{'pw'} = $pw;

&auth_cleanup; # Remove old session files.
($status, $uid) = &auth_check_password; # Authenticate User, get permissions and userid.
$script_link = "$db_script_url?db=default&uid=$db_uid";

if ($status eq "ok") {
if (length($userid) < 3) { ($userid, $trashy) = split(/\./,$uid); }
if ($userid) { $script_link = "$script_link&userid=$userid"; }
if ($uid eq "default") { $db_userid = $uid; }
else { ($db_userid) = $db_uid =~ /([A-Za-z0-9] )\.\d /; }

if ($in{'edit'}) {
$edit = $in{'edit'};
&verify;

} elsif ($in{'logoff'}) { &auth_logging('logged off') if ($auth_logging);
$auth_logoff ? (print "Location: $auth_logoff\n\n") : (print "Location: $db_script_url\n\n");

} elsif ($in{'addentry'} =~ /Add/) {

&get_variables;
if ($blurbonly eq 0) { &new_file; } #if there is not just a blurb, write a new news file
&main_page;
&return_html("entry added"); #show user added entry

} elsif ($in{'addentry'} =~ /Preview/) {

&get_variables;
&preview;

} elsif ($in{'auth'} eq "adduser") {
&print_new_auth;

} elsif ($in{'login'}) {
&addform;

} else {
&error($status);

} # End Edit

} elsif ($in{'auth'} eq "newpass") {
if ($in{'password'} eq $in{'verify'}) {
&signup;
} else { &print_new_auth("Sorry... Your passwords didn't match. Please try again."); }

} elsif ($status eq "no login") {
&print_auth($status);

} else {
&error($status);
}

exit(0);

} # End Main



__________________
Don't throw away your shot.
  #5  
Old Jun 10, 2001, 08:25 PM
DocJohn's Avatar
DocJohn DocJohn is offline
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

Make sure you look at:

<A target="_blank" HREF=http://www.grohol.com/downloads/oj/latest/oj.txt>http://www.grohol.com/downloads/oj/latest/oj.txt</A>

so that what I just posted matches what you add to your oj.cgi file. Apparently the forum software removes certain combinations of symbols, such as + +, which could result in an error if you just copy and paste directly from the forum. Sorry for the inconvenience.

All of the previous problems have been fixed in the current downloadable release, v2.02.

__________________
Don't throw away your shot.
Thanks for this!
secretworld
  #6  
Old Jun 11, 2001, 05:47 PM
kalico kalico is offline
Junior Member
 
Member Since: Jun 2001
Posts: 11
Ok, that helps... but there's still something up.

When I go to the base script, at http://www.kalico.net/cgi-bin/oj/oj.cgi I'm not getting the add new user screen (which said something like first time user, enter username + pwd twice), just the login screen which says "no login" -- with space for username and password only once. But I cant get in with the username and pwd I tried to reg yesterday, so I'm lost. I can call it with the ? I'm sure, but isn't it supposed to start with a newuser login? or if it's because I already logged in for the first time yesterday, why does it return an error? I'm also not sure where to find the users, so I can check to see if they're being written where they should be. Thanks!!

Reply
Views: 905

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.



Similar Threads
Thread Thread Starter Forum Replies Last Post
user name Community Feedback & Technical Support 1 Jun 03, 2004 08:42 AM
new user NIKKINS1 Depression 1 Feb 11, 2004 08:59 PM
cant add user on OJ 202 maxxxe Community Feedback & Technical Support 0 Jan 23, 2002 08:39 AM
Nothing happens after new user login...... liontamer Community Feedback & Technical Support 9 Jun 10, 2001 08:25 PM


All times are GMT -5. The time now is 04:40 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.