mirror of https://github.com/itflow-org/itflow
More encryption updates
This commit is contained in:
parent
6c6b7e2255
commit
8e0334aab1
1
post.php
1
post.php
|
|
@ -1039,6 +1039,7 @@ if(isset($_POST['encryption_update'])){
|
|||
if(!password_verify($password, $row['user_password'])){
|
||||
$_SESSION['alert_message'] = "User password incorrect.";
|
||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||
exit();
|
||||
}
|
||||
|
||||
//First, check if this user is setup for the new encryption setup
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ if ($config_aes_key) {
|
|||
<input type="password" class="form-control" placeholder="Account Password" name="password" value="" required="">
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -109,7 +110,7 @@ if ($config_aes_key) {
|
|||
}
|
||||
else {
|
||||
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.";
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue