No. .. I analyzed the code of gluon.tools.py, gluon.validators.py and gluon.dal.py. The application I used the code mentioned is a server for two mobile applications. I don't know much about CAS... sorry.
On Fri, Feb 22, 2013 at 1:58 PM, Anthony <abasta...@gmail.com> wrote: > Did you look into > CAS<http://web2py.com/books/default/chapter/29/09#Central-Authentication-Service>for > that? > > > On Friday, February 22, 2013 11:11:54 AM UTC-5, __pyslan__ wrote: >> >> Hello everybody! >> >> Well, I still have not solved the problem with stored procedures in >> MySQL, but I need to continue the project and I solved another issue, the >> user login to the same database by another application. >> >> I will leave my tip here and ask for more experienced developers evaluate >> and give their suggestions and critiques... >> >> >> Steps: >> >> 1 - Copy the gluon folder to my project; >> 2 - Get the key of private/auth.key; >> 3 - import CRYPT to my python file: >> from gluon.validators import CRYPT >> 4 - Create an instance of CRYPT: >> is_crypted = CRYPT(key="sha512:5cd88937-** >> 7953-421b-9ddb-efe7a2143c01") >> 5 - Get the crypted typed password: >> crypted_password = is_crypted(typed_password)[0] >> 6 - Get the crypted password of data base: >> por exemple: "sha512$acaff286317f5370$** >> cce2a85b937d2b879xcd767ef03...**" # it is very large... >> 7 - Compare de passwords: >> return db_password == crypted_password >> >> >> I hope I helped. >> > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.