tg1.5 authentication problem

4 views
Skip to first unread message

jo

unread,
Feb 28, 2014, 1:21:56 AM2/28/14
to tg, TurboG...@googlegroups.com
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>

Reply all
Reply to author
Forward
0 new messages