* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * 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 *
* it under the terms of the GNU General Public License as published by *
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+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