INPUT(_name='password', _type='password')
because INPUT(_password='password') is a nonsense.
On Wed, Jan 22, 2014 at 8:14 PM, Lucas Schreiber <
lucas.schreiber.pri...@gmail.com> wrote:
> Hi, i thought the form worked good, but unfortunally i was wrong.
> name = form.vars.name contains the data
Hi, i thought the form worked good, but unfortunally i was wrong.
name = form.vars.name contains the data from 'Name', INPUT(_name='name'),
but
passwords = form.vars.password is always none
here again the code, with the improvements:
def login():
form = FORM(
'Name', INPUT(_name='name'),
Thank you very much, it works good :)
Am Sonntag, 19. Januar 2014 19:28:23 UTC+1 schrieb Lucas Schreiber:
>
> Hi guys,
>
> i have this function:
>
> def login():
> form = FORM(
> 'Name', INPUT(_name='name'),
> 'password', INPUT(_password='password'),
> INPUT(_type='submit'))
>
Security aside.
This:
records = SQLTABLE(dba(dba.user.name== name).select(dba.user.password),
headers='fieldname:capitalize')
passworddb = records[1]
should probably be:
passwdb = dba(dba.user.name== name).select(dba.user.password).first().passwd
this:
dba.person.insert(name
sure.
So, there is a form where you enter a Password and a username.
now, the function shall take the username and check if there is any
username like that in the db. if there is such a username, the
correspondending Password shall be read and seperated into a variable. now,
if the Password fr
Code aside, can you explain what you are trying to accomplish? I think
there is more of a syntax problem here. There may be a security problem too.
On Sunday, 19 January 2014 12:28:23 UTC-6, Lucas Schreiber wrote:
>
> Hi guys,
>
> i have this function:
>
> def login():
> form = FORM(
> 'N
6 matches
Mail list logo