i will try (i'am at work) and if it works (i hope it will) please give me your paypal and drink something for me.
Regards Bussiere "Les nouvelles technologies offrent pleins de nouvelles possibilités, pleins de possibilités d'erreurs surtout en fait." insurance.aes256 : http://goo.gl/gHyAY -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1 mQGiBE9sjdsRBADsY+DaDgj+pDuGLNVL6Dc+ghCxaEBK+9nwBvKPGIUocz13V42P 5Jn/NJ9zRgZNdg5XbhohN2ltas8Nr09rrRQXbBk8zjCg/Qr0a4LmfA3j128SwCfZ aTe5zlo/WSSuGv6kWGe/KZrLmiQoZRTDbZzqWyZxuJRkcpgsZc+jYRXJHwCgualT LpC23Ja3plM6J6noFaqAlMUEAKZGDadSS/BW4gckw9XqSHRex7/XyWU4sqVQlhMy 5DEIba7H8cU6grww+p/cYa3OCocv5Mycf6MbWDCPrtsG0X08u8PgEaE29BsLIgSm JF6r8y4Rgwj5xyCMTaxql82S+tZHyScpAoQ0a+xlTwxMZMuwK9p6b7oipXHL+UPN sDfkBACoYLS4PQPFotqWI96j83NNLwEumUzA6Rqyas8w6Xwr51quA65y/0nBmMmp l58tKN7eyc5+bIpRX5bGG6ktCUHnfzk9uvnG7peilWzYT6+AJ3gbBgMGLBPByJBN NH+nLjzsh4PzIxuSHLMiK5FkDNE2B95kaahIg42SQPT80LyvDLQlYnVzc2llcmVf cHJpdmF0ZSA8YnVzc2llcmVAZ21haWwuY29tPohZBBMRAgAZBQJPbI3bBAsHAwID FQIDAxYCAQIeAQIXgAAKCRAYpzZWoPP7b0h0AJ4n9feBF2FH4JUGhLU3XL3eIrOX 9gCfZbN4JHYl/nRLL4uHrceRUk1M9Pm5Ac0ET2yN3hAHAK5MypLMT50yklt1n/pQ MjrFXuvM9IQvVyQemHMUBqKqxPTVMJLn86mR5mTLMqs+WVAqei8GTsQeSSvHyIbk 8RvYrKY7aK2RVZUV1dHQ6PII0w3BI5C0L9GM/UyIq0VRXTW6zjp9hS/xgn5SrQad VIdGQKFVJa9h5/AzgjseARMQRkTQA/xX5/WmHxXaXUPhGxCeFsoqs53UFz1rkHYx mus2WiD0gHbJ58DiMlVmupeNumi4e9wa+mYuW4qGwjzsQn9ZFNdoiUFzQrqZa6o+ Son+yZpGe/H9VidrWR5LhwD7AAMGBv9bhswvwpQ23X0kGItv7/jHVr/RJui7FAXY mOM4WAoUv/5ttPHf8OifWmeUDPlzm4txvR5a7t4hhVDehek1J7FEVvfG+ffcHiPP kkFaUv2EgrXziozt/Vkr2nngsKO5FpRJe9GSqn68uZirhwbkHSKX6LPNFTWSYR3E fefnsCaP82OJDBFGFMg2aMsz9QL85bg58fgHU972kLTePXUVAh3gaxb6qpjwZt2b yrCGJ/rnmIc/IWH8TJtHI5Yf3Abx2vlFTtzRH0CwVXuO0msjcfRrrrrS8NSm/ih5 0ssElxKU6IhGBBgRAgAGBQJPbI3eAAoJEBinNlag8/tvoBEAn2Yqu0UFC5OSjD1Y JQ00FFjNVestAJ0XctcbmhKaFuQ46SccW8C2JDG/xA== =+VZi -----END PGP PUBLIC KEY BLOCK----- On Mon, Mar 26, 2012 at 12:00 PM, selecta <[email protected]> wrote: > password="toto" > my_crypt = CRYPT(key=auth.settings.hmac_key) > crypt_pass = my_crypt(password)[0] > user = > db.auth_user.insert(Surnom="Surnom",email="email5@toto",username="titi",password=crypt_pass,) > from gluon.storage import Storage > session.auth = > Storage(user=user,expiration=auth.settings.expiration,hmac_key=str(uuid4())) > auth.user = Storage(auth.settings.table_user._filter_fields(user, > id=True)) > auth.environment.session.auth = Storage(user=user, > last_visit=request.now,expiration=auth.settings.expiration) > redirect(URL('inscriptioninvit')) > > On Monday, March 26, 2012 11:53:28 AM UTC+2, selecta wrote: >> >> did you see this slice >> >> http://www.web2pyslices.com/slice/show/1443/auto-login-when-you-come-from-localhost >> it logs you in when you come from localhost, just exchange the if an there >> you go :D >> >> On Monday, March 26, 2012 2:11:29 AM UTC+2, bussiere adrien wrote: >>> >>> it's more a logical problem than your framework. >>> >>> I just want to know how to log a user. >>> >>> Bussiere >>> >>> Le lundi 26 mars 2012 01:35:04 UTC+2, Massimo Di Pierro a écrit : >>>> >>>> I have been on the road and hard to keep up up with posts. If this issue >>>> is still open please open a ticket so it can be tracked. >>>> >>>> On Sunday, 25 March 2012 11:57:20 UTC-5, bussiere adrien wrote: >>>>> >>>>> I want to create myself a user then log him. >>>>> This for an open source project >>>>> : https://github.com/bussiere/jackpoint >>>>> I've been on it for 3 days now. >>>>> >>>>> I want to create a user then loggin him and auth him. >>>>> If you find it just give me your paypal in private buy you a drink. >>>>> >>>>> Here is my code : >>>>> def test(): >>>>> >>>>> password="toto" >>>>> my_crypt = CRYPT(key=auth.settings.hmac_key) >>>>> crypt_pass = my_crypt(password)[0] >>>>> user = db.auth_user.insert( >>>>> Surnom="Surnom", >>>>> email="email5@toto", >>>>> username="titi", >>>>> password=crypt_pass, >>>>> ) >>>>> db.commit() >>>>> >>>>> user = auth.login_bare("titi",password) >>>>> session.auth = >>>>> Storage(user=user,expiration=auth.settings.expiration,hmac_key=str(uuid4())) >>>>> redirect(URL('inscriptioninvit')) >>>>> >>>>> @auth.requires_login() >>>>> def inscriptioninvit(): >>>>> return "hello"

