Re: [web2py] SQLFORM Validation and Password Hashes

2015-03-10 Thread Dave S
On Tuesday, March 10, 2015 at 10:44:36 AM UTC-7, horridohobbyist wrote: > > Nobody has any ideas?? Surely, this is a common use case... > > Does it work to make the password field readable=writable=False in the form? If it does, you can probably add a button for "change password" to toggle tho

Re: [web2py] SQLFORM Validation and Password Hashes

2015-03-10 Thread horridohobbyist
Nobody has any ideas?? Surely, this is a common use case... On Tuesday, 10 March 2015 07:41:45 UTC-4, horridohobbyist wrote: > > The table definition is: > > db.define_table('teams', > > Field('team_email',requires=[IS_EMAIL(),IS_NOT_IN_DB(db,'teams.team_email')]), >

Re: [web2py] SQLFORM Validation and Password Hashes

2015-03-10 Thread horridohobbyist
The table definition is: db.define_table('teams', Field('team_email',requires=[IS_EMAIL(),IS_NOT_IN_DB(db,'teams.team_email')]), Field('password',requires=[IS_STRONG(upper=2),CRYPT(salt=False)]), Field('team_name',requires=[IS_TEAM_NAME(),IS_NOT_I

Re: [web2py] SQLFORM Validation and Password Hashes

2015-03-09 Thread Johann Spies
On 10 March 2015 at 06:53, horridohobbyist wrote: I use SQLFORM to add records to a table. However, one of the fields is a > password which requires=[IS_STRONG(upper=2),CRYPT(salt=False)]. > > I would like to use SQLFORM to update records in the table, but I run into > a problem: the password fi

[web2py] SQLFORM Validation and Password Hashes

2015-03-09 Thread horridohobbyist
I use SQLFORM to add records to a table. However, one of the fields is a password which requires=[IS_STRONG(upper=2),CRYPT(salt=False)]. I would like to use SQLFORM to update records in the table, but I run into a problem: the password field contains the hash of the password, which will not pa