write a note why regnerateAuthHash doesn't work when saving config

This commit is contained in:
Isaac Connor 2019-06-04 16:30:57 -04:00
parent cc269378cf
commit 4b9b2015cb
1 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,7 @@ if ( $action == 'delete' ) {
}
}
if ( $changed ) {
switch( $_REQUEST['tab'] ) {
switch ( $_REQUEST['tab'] ) {
case 'system' :
case 'config' :
$restartWarning = true;
@ -93,7 +93,8 @@ if ( $action == 'delete' ) {
$redirect = '?view=options&tab='.$_REQUEST['tab'];
loadConfig(false);
# Might need to update auth hash
generateAuthHash(ZM_AUTH_HASH_IPS, true);
# This doesn't work because the config are constants and won't really be loaded until the next refresh.
#generateAuthHash(ZM_AUTH_HASH_IPS, true);
}
return;
} // end if object vs action