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