MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: login-procedure



******    message to minivend-users from "Hans-Joachim Leidinger" <hans-joachim.leidinger@home.gelsen-net.de>     ******

Hello Balu,

i have compare your code with my code! I see the setting of mv_username
is not right or maybe the result of your Runtime error. I have rewrite
your code (see below) and i hope, its help you!

Joachim


| ******    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]
    <FORM ACTION="[process-target]" METHOD=POST>
     LOGOUT>BR>
     Hallo [value name]! You are logged in as user [value
mv_username].<BR>
    <INPUT TYPE=hidden NAME=mv_click VALUE="Log out">
    <INPUT TYPE=submit NAME="mv_click" VALUE="Log out">
    <A HREF="[area new_account]">preferences</A>
    </FORM>
  [set Log out]
      mv_todo=return

      mv_nextpage=####### YOURNEXTPAGE ? ######

      [userdb function=logout clear=1]

      mv_username=[value mv_username]

 [/set]
[/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>
      <INPUT TYPE=hidden NAME=mv_doit  VALUE=return>
      <INPUT TYPE=hidden NAME=mv_nextpage VALUE="###### YOUR NEXTPAGE
#######">

       User <INPUT NAME=mv_username VALUE="[value mv_username]"
SIZE=10><br>
  -------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^
       Pass <INPUT TYPE=password NAME=mv_password VALUE="" SIZE=10>
  -------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^
       <INPUT TYPE=submit VALUE="Log In">
     <A HREF="[area new_account]"><font color="#ffffff">neuen Account
erstellen<
     </FORM>

   [/else]
 [/if]

| [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


Search for: Match: Format: Sort by: