If auth is not turned on, redirect to console

This commit is contained in:
Isaac Connor 2021-03-27 13:41:49 -04:00
parent 1d99bd5cb3
commit 4ee3380e3a
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ if (
?>
<div class="error">
User Authentication is not turned on. You cannot log in.
<script nonce="<?php echo $cspNonce; ?>">
setTimeout(function() { window.location.replace('?view=console'); }, 500);
</script>
</div>
<?php
} # end if ZM_OPT_AUTH