I'm glad to report that 'password2' is now accepted by web2py auth in
revision 1072.

Tested on my local Ubuntu box.

On Thu, Jun 25, 2009 at 12:42 PM, mdipierro<mdipie...@cs.depaul.edu> wrote:
>
> I may have just fixed it. Could you please check it and let me know?
>
> Massimo
>
> On Jun 24, 11:30 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>> Yes, there is a bug. I will fix it tomorrow morning.
>>
>> Massimo
>>
>> On Jun 24, 10:35 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>>
>> > than it must be a web2py bug. Perhaps I left a "password" hardcoded
>> > somewhere?
>>
>> > massimo
>>
>> > On Jun 24, 10:24 pm, Alexei Vinidiktov <alexei.vinidik...@gmail.com>
>> > wrote:
>>
>> > > The thing is it doesn't work with either firebird or sqlite if the
>> > > password field's name is 'password2'. I'll do more tests later today.
>>
>> > > On Thursday, June 25, 2009, mdipierro <mdipie...@cs.depaul.edu> wrote:
>>
>> > > > hmmm.. if you discover something let me know. I thought somebody had
>> > > > tested that. I did not because I do not have firebird installed.
>>
>> > > > On Jun 24, 3:28 pm, Alexei Vinidiktov <alexei.vinidik...@gmail.com>
>> > > > wrote:
>> > > >> I tried changing the password field's name to a name which didn't
>> > > >> contain the 'password' substring and I could successfully load the
>> > > >> registration page using both sqlite and Firebird.
>>
>> > > >> I wonder why 'password2' didn't work.
>>
>> > > >> On Thu, Jun 25, 2009 at 3:51 AM, Alexei
>>
>> > > >> Vinidiktov<alexei.vinidik...@gmail.com> wrote:
>> > > >> > I could have sworn that it worked fine with sqlite, but I've just
>> > > >> > tested it, and it doesn't!
>>
>> > > >> > I've upgraded to the latest version of web2py and tested the
>> > > >> > registration page with sqlite. Now it works fine.
>>
>> > > >> > In order to make the app work with Firebird I changed the password
>> > > >> > field's name to password2 as you had suggested:
>>
>> > > >> > from gluon.tools import *
>> > > >> > auth=Auth(globals(),db)            # authentication/authorization
>> > > >> > auth.settings.password_field='password2' # I added this line here.
>> > > >> > auth.define_tables()               # creates all needed tables
>> > > >> > crud=Crud(globals(),db)            # for CRUD helpers using auth
>> > > >> > service=Service(globals())         # for json, xml, jsonrpc, 
>> > > >> > xmlrpc, amfrpc
>>
>> > > >> > then I tried again with sqlite (not Firebird). This time accessing 
>> > > >> > the
>> > > >> > registration page gave me the same error as before.
>>
>> > > >> > What have I missed? Did I put the line
>> > > >> > auth.settings.password_field='password2' in the wrong place? Did I
>> > > >> > have to add anything else?
>>
>> > > >> > On Thu, Jun 25, 2009 at 3:12 AM, mdipierro<mdipie...@cs.depaul.edu> 
>> > > >> > wrote:
>>
>> > > >> >> Let's isolate the problem. does it have to do with firebird or do 
>> > > >> >> you
>> > > >> >> have the same problem with sqlite also?
>>
>> > > >> >> Massimo
>>
>> > > >> >> On Jun 24, 12:35 pm, Alexei Vinidiktov 
>> > > >> >> <alexei.vinidik...@gmail.com>
>> > > >> >> wrote:
>> > > >> >>> Hello,
>>
>> > > >> >>> After I managed to connect to my Firebird database from the 
>> > > >> >>> default
>> > > >> >>> welcome application of web2py, I tried visiting different pages 
>> > > >> >>> of the
>> > > >> >>> Welcome app, such as the index page, the login page and the
>> > > >> >>> registration page.
>>
>> > > >> >>> The first two pages loaded and displayed fine, but when I tried to
>> > > >> >>> load the registration page, after several seconds of waiting I got
>> > > >> >>> this ticket:
>>
>> > > >> >>> 'Traceback (most recent call last):
>> > > >> >>>   File "/var/www/alvinru/data/www/bilingsoft.ru/gluon/main.py", 
>> > > >> >>> line
>> > > >> >>> 348, in wsgibase
>> > > >> >>>    serve_controller(request, response, session)
>> > > >> >>>   File "/var/www/alvinru/data/www/bilingsoft.ru/gluon/main.py", 
>> > > >> >>> line
>> > > >> >>> 132, in serve_controller
>> > > >> >>>     run_controller_in(request.controller, request.function, 
>> > > >> >>> environment)
>> > > >> >>>   File 
>> > > >> >>> "/var/www/alvinru/data/www/bilingsoft.ru/gluon/compileapp.py",
>> > > >> >>> line 277, in run_controller_in
>> > > >> >>>     restricted(code, environment, filename)
>> > > >> >>> MemoryError'
>>
>> > > >> >>> That was on CentOS, which is a VPS with only 256 Mb RAM.
>>
>> > > >> >>> When I tried to do the same thing on Windows (1 Gb RAM), loading 
>> > > >> >>> the
>> > > >> >>> registration page resulted in the Python process eating up more 
>> > > >> >>> and
>> > > >> >>> more RAM and never stopping. I had to kill the Python process 
>> > > >> >>> from the
>> > > >> >>> Task Manager.
>>
>> > > >> >>> --
>> > > >> >>> Alexei Vinidiktov
>> > > >> >>> CentOS 5.2, WinXP Pro SP3, Python 2.5.4, web2py 1.64.3, Firebird 
>> > > >> >>> 2.1.2
>> > > >> >>> Super Server
>>
>> > > >> > --
>> > > >> > Alexei Vinidiktov
>>
>> > > >> --
>> > > >> Alexei Vinidiktov
>>
>> > > --
>> > > Alexei Vinidiktov
> >
>



-- 
Alexei Vinidiktov

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to