More encryption updates

This commit is contained in:
Marcus Hill
2022-01-11 19:03:33 +00:00
parent 6c6b7e2255
commit 8e0334aab1
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1039,6 +1039,7 @@ if(isset($_POST['encryption_update'])){
if(!password_verify($password, $row['user_password'])){ if(!password_verify($password, $row['user_password'])){
$_SESSION['alert_message'] = "User password incorrect."; $_SESSION['alert_message'] = "User password incorrect.";
header("Location: " . $_SERVER["HTTP_REFERER"]); header("Location: " . $_SERVER["HTTP_REFERER"]);
exit();
} }
//First, check if this user is setup for the new encryption setup //First, check if this user is setup for the new encryption setup
+2 -1
View File
@@ -102,6 +102,7 @@ if ($config_aes_key) {
<input type="password" class="form-control" placeholder="Account Password" name="password" value="" required=""> <input type="password" class="form-control" placeholder="Account Password" name="password" value="" required="">
</div> </div>
<br> <br>
<p>Warning: This action is irreversible. Do NOT proceed without a backup.</p>
<button type="submit" class="btn btn-danger" name="encryption_update">Update encryption scheme for this company</button> <button type="submit" class="btn btn-danger" name="encryption_update">Update encryption scheme for this company</button>
</div> </div>
</form> </form>
@@ -109,7 +110,7 @@ if ($config_aes_key) {
} }
else { else {
echo "Config AES key is not set for this company.<br>"; echo "Config AES key is not set for this company.<br>";
echo "Please ensure upgrade is required. If you are sure you need to update, ensure the AES key is for this company."; echo "Please ensure upgrade is required. If you are sure you need to update, ensure the AES key is set correctly for this company.";
} }
?> ?>