Michacy Posted November 8, 2012 Share Posted November 8, 2012 Hi everyone, I'm beginner in prestashop. I would like create a integration plugin, but I have a problem. I created configuration page for this plugin, but one field should be encrypted by md5. I don't know how I can do this. Can you help me? In controller I have this: public function __construct() { $this->className = 'Configuration'; $this->table = 'configuration'; parent::__construct(); // Options list $this->fields_options = array( 'general' => array( 'title' => $this->l('General'), 'fields' => array( 'A_LOGIN' => array( 'title' => $this->l('Login'), 'type' => 'text', 'required' => true, 'size' => 25, 'visibility' => Shop::CONTEXT_ALL ), 'A_PASSWORD' => array( 'title' => $this->l('Passwird'), 'type' => 'password', 'required' => true, 'size' => 32, 'visibility' => Shop::CONTEXT_ALL ), ), 'submit' => array() ) ); The field password should be encrypted. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now