[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
login-procedure
****** message to minivend-users from "Thomas 'Balu' Walter" <tw@iTreff.DE> ******
Hiho...
I've asked this before, but got no answer - perhaps I did not explain it
enough.
What am I doing wrong with the userdb-login-function? I use the following
code-snipped (nearly the same from the simple demo) - in a file that is
included in all others - see bottom...:
Login with existing password works, but if I provide a wrong password or a
wrong username the server answers with Internal server error and the logfile
says:
193.174.90.4 AMxWdNJ9:193.174.90.4 - [01/Juni/1999:18:03:45 +0200] ch-test
/cgi-bin/ch-test/process Runtime error: Username does not exist.
or
193.174.90.4 V7kwPNeB:193.174.90.4 - [01/Juni/1999:18:05:42 +0200] ch-test
/cgi-bin/ch-test/process Runtime error: Password mismatch.
Why doesn't it just display "password mismatch" or sthg. on the "welcome"
(?) page like it does in the simple demo?
Balu
[comment]<!-- Login-Prozedur -->[/comment]<hr><br>
[if session logged_in]
[then] [comment]<!-- logged in already -->[/comment]
[set Log out]
mv_todo=return
[userdb function=logout clear=1]
[/set]
<FORM METHOD="POST" ACTION="[process-target]">
LOG OUT<BR>
Hallo [value name]! You are logged in as user [data session username].<BR
<INPUT TYPE=submit NAME="mv_click" VALUE="Log out">
<A HREF="[area new_account]">preferences</A><BR>
</FORM>
[/then]
[else] [comment]<!-- login or create new account -->[/comment]
LOG IN<BR>
[set Login]
mv_todo=return
mv_nextpage=welcome
[userdb function=login]
[/set]
[if session failure]
[data session failure]
[/if]
<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_click VALUE=Login>
User <INPUT NAME=mv_username SIZE=10><br>
Pass <INPUT NAME=mv_password type=password SIZE=10><br>
<INPUT TYPE=submit VALUE="Log In">
</FORM>
<A HREF="[area new_account]"><font color="#ffffff">neuen Account erstellen<
<INPUT MAXLENGTH="30" NAME="mv_searchspec" SIZE="13" VALUE=""><BR>
[/else]
[/if]
</font>
--
To receive my public-key send the subject "public-key request" to
tw@itreff.de
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list