Hi all,

I installed TG1.5 but authentication doesn't work for me.
I'm trying to debug visitor.py

if I print request.params in
identity_from_form function
it says:

{'fwd': u'http://mytg15/login'}

if I use old version tg1.1, it returns a dictionary with these keys, instead:

{'fwd': u'/login', 'password': u'321mypwd123!', 'login': u'login', 'logname': u'pippo', 'forward_url': u'/main'}

I can't realize what I'm doing wrong.

I'm using this kid template as my login page:

---------------------------------------------------------------------------------------------------------------------------

       <form action="${previous_url}" method="POST" name='login_form'>
           <table border="0" cellpadding="5">
               <tr>
                   <td class="label">
<label for="logname"><font face="Verdana, Arial, Geneva, Helvetica, sans-serif"> username:</font></label>
                   </td>
                   <td class="field">
                       <input type="text" id="user_name" name="user_name"/>
                   </td>
               </tr>
               <tr>
                   <td class="label">
<label for="password"><font face="Verdana, Arial, Geneva, Helvetica, sans-serif">password:</font></label>
                   </td>
                   <td class="field">
<input type="password" id="password" name="password"/>
                   </td>
               </tr>
o                <tr>
                   <td colspan="2" class="buttons">
                       <input type="submit" name="login" value="login"/>
                   </td>
               </tr>
           </table>
<input py:if="forward_url" type="hidden" name="forward_url" value="${forward_url}"/>
           <input py:for="name,value in original_parameters.items()"
               type="hidden" name="${name}" value="${value}"/>
       </form>

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to