* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
addYouAreHereLink('admin', __FILE__);
if (isFormSent('save_config')) {
+ // Hash the password and remove clear-text
+ setPostRequestElement('wernis_pass_md5', hashSha256(postRequestElement('wernis_pass')));
+
// First merge temporarily the new API data into the current config
mergeConfig(postRequestArray());
setPostRequestElement('wernis_' . $revert, postRequestElement('wernis_' . $revert));
} // END - if
- // Hash the password and remove clear-text
- setPostRequestElement('wernis_pass_md5', md5(postRequestElement('wernis_pass')));
+ // Remove clear password
unsetPostRequestElement('wernis_pass');
// Save settings