Hi Massimo,

I know, from now the password is always salted. But the automatic creation 
of an app produces this error (in trunk).

Andreas

Am Montag, 30. Juli 2012 15:35:15 UTC+2 schrieb Massimo Di Pierro:
>
> You have created a new app using an experimental web2py in trunk. It 
> created a models/db.py with Auth(...,salt=True). 
> This option has been removed from trunk (there is no more salt attribute, 
> we always salt) therefore you have to edit your db.py and remove salt=True.
>
> This is not a backward compatibility issue because no app created with 
> stable is broken.
>
> Massimo
>
> On Monday, 30 July 2012 02:16:01 UTC-5, Andreas Kaiser wrote:
>>
>> Hi,
>>
>> using latest trunk and in admin I've created a new simple app. If I try 
>> to run this app, I get a ticket.
>> <type 'exceptions.TypeError'> __init__() got an unexpected keyword 
>> argument 'salt'
>>
>> TRACEBACK
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>>
>> Traceback (most recent call last):
>>   File "E:\web2py-2-work\gluon\restricted.py", line 205, in restricted
>>     exec ccode in environment
>>   File "E:/web2py-2-work/applications/uittime/models/db.py" 
>> <http://127.0.0.1:8000/admin/default/edit/uittime/models/db.py>, line 43, in 
>> <module>
>>     auth = Auth(db, hmac_key=Auth.get_or_create_key(), salt=True)
>> TypeError: __init__() got an unexpected keyword argument 'salt'
>>
>> In the example App the line for Auth initialation looks like:
>>
>> auth = Auth(db)
>>
>> Is this an error in trunk for create a new app?
>>
>>
>> Andreas
>>
>>

-- 



Reply via email to