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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.