How to log out in command line ?
But the main goal is that i want to tempory log a user with a dummy 
password.
He gives me the invitation i log him with a pre user made myself with the 
invitation as the password.
And them i give him a form inscription to make a full user.

So i need to log him myself.

Bussiere


Le dimanche 25 mars 2012 16:50:36 UTC+2, Sushant Taneja a écrit :
>
> Just a thought here, but have you tried logging out and logging in again 
> with the same password. Does it work ?
>
> On Sunday, March 25, 2012 3:47:53 PM UTC+5:30, bussiere adrien wrote:
>>
>> i've created and logged my user with :
>>
>> password="toto"
>> my_crypt = CRYPT(key=auth.settings.hmac_​​key)
>> crypt_pass = my_crypt(password)[0]    
>> user = db.auth_user.insert(
>>            Surnom="Surnom",
>>            email="email",
>>            password=crypt_pass​​,
>>                            )
>> db.commit()
>> session.auth = 
>> Storage(user=user,expiration=a​​uth.settings.expiration,hmac_​​key=str(uuid4()))
>> auth.login_bare(user,password)
>> and i have no error
>>
>> but when i wan to access a page with :
>> @auth.requires_login()
>>
>> it don't work
>> Ragrds
>> Bussiere
>>
>>

Reply via email to