Dear fellows
I've entrapped myself, trying to simplify my life.
I've just changed from pure DBI access libraries to Class::DBI and I'm currently rewriting code to authenticate and change his/her password using this module.
I'm encripting database stored passwords using MySQL's PASSWORD() SQL Function.
What I need is a simple way to make Class::DBI do what the SQL code below does:
SELECT [columns] FROM user WHERE id='$id' AND passwd=PASSWORD('$pwd')
UPDATE user SET passwd=PASSWORD('$pwd') WHERE id='$id'
I can't figure out from docs how do I call MySQL's PASSWORD() function from the Class::DBI module.
Any help would be nice.
Thank you very much.
"In few words, translating PerlMonks documentation and best articles to other languages is like building a bridge to join other Perl communities into PerlMonks family. This makes the family bigger, the knowledge greather, the parties better and the life easier." -- monsieur_champs
In reply to How to call MySQL's PASSWORD() from Class::DBI? by monsieur_champs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |