[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] login error- advances user to next page but does not log them in
You don't have mv_verify set. Look in the Login profile in
etc/profiles.login to see the code.
Also, a word of warning: you have your userdb call inside an mv_click,
which gets executed before the Values hash is updated with the current
CGI vars. I would recommend defining all the stuff you need in a
profile, and call the profile name with mv_check--which executes after
the values are updated.
If you must perform the login in a mv_click, you need to add the [update
values] tag before the actual call to the [userdb] tag. Otherwise, you
will get undesired results.
Donald Lin wrote:
>
> Hello. I am trying to get my login page to work correctly and I can't seem
> to figure out what is wrong. When the user successfully types in a username
> and password, I want them to be sent to the index page. Right now, it
> advances them to the index page but does NOT log them in. I am using very
> similar code from the one they use on the akopia site and am using a catalog
> I built. I have the userdb table with the same fields as the construct
> something demo.
> When i check [data session failure] I get a "Invalid user name or password."
> error and when I check the error_log I get a "[29/June/2001:17:28:08 -0400]
> kosher /kosher/
> kosher.cgi/process Attempted login by user 'test' with incorrect password"
> but I am typing in the correct password. I have also included the code. Does
> anyone know what is wrong? Thanks in advance.
>
> Donald
>
> [set Login]
> mv_todo=return
> mv_nextpage=index
> [userdb function=login]
> [/set]
> <FORM ACTION="[process-target]" METHOD=POST>
> <INPUT TYPE=hidden NAME=mv_click VALUE=Login>
> <INPUT TYPE=hidden NAME=mv_todo VALUE=return>
> <INPUT TYPE=hidden NAME=mv_nextpage VALUE=index>
> 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>
> [data session failure]
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
--
Mark Johnson
Senior Systems Architect - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912