[ic] login routine

Scott Andreas webteam at wes-state.com
Fri Dec 10 13:29:37 EST 2004

Hello list

I've got a new client and I'm trying to create a login routine much like 
the affiliate login routine.  The database is nha.db and consist of rows
code|agree|name|email|company|etc.... from an imported text file nha.txt

In catalog.cfg I have...

# minimal login stuff for nha affiliate
UserDB  nha  database        nha
UserDB  nha  user_field      email
UserDb  nha  pass_field      code
UserDB  nha  crypt           0
which should use the email field for the username and code field for the 

In the login page I have...

[set NHALogin]
[if session logged_in]
[userdb logout]
[userdb function=login profile=nha]

<table border="0" cellspacing="0" cellpadding="0">
<FORM ACTION="[process secure=1]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_session_id value="[data session id]">
<INPUT TYPE=hidden NAME=mv_click VALUE=NHALogin>
<INPUT TYPE=hidden NAME=mv_todo  VALUE=return>
<INPUT TYPE=hidden NAME=mv_nextpage VALUE="nha/index">
    <table border="0" cellspacing="0" cellpadding="2">
      <td align="right">
      <td align="left">
        <INPUT NAME=mv_username VALUE="">
      <td align="right">
      <td align="left">
        <INPUT TYPE=password NAME=mv_password VALUE="">
        <input type="submit" value="[L]Log In[/L]">
 with the go to if succeed page page of...

[if !session logged_in]
[or session login_table ne 'nha']
    [bounce page="nha/login"]
But I get errors of... fn4bEfCZ: - [10/December/2004:12:11:08 -0600] 
wes-state /cgi-bin/wes-state/process Denied attempted login with 
nonexistent user name 'myname at mydot.com'

I've tried UserDB nha indirect_login email in catalog.cfg. And I've 
tried  adding a parameter in profile.login  of...

__NAME__ NHALogin

[if type=explicit compare="[userdb function= login profile=nha]"]
    [set mv_no_count][/set]
    [set mv_no_session_id][/set]
    mv_nextpage=[either][cgi mv_successpage][or][cgi mv_nextpage][/either]
    mv_nextpage=[either][cgi mv_failpage][or][cgi mv_nextpage][/either]


but with the same result

any suggestion a very welcome



No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.5.0 - Release Date: 12/9/2004

More information about the interchange-users mailing list