mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Fix incorrect logic in cred update flow (#2956)
Incorrect logic in cred update meant that valid transactions would not be allowed to commit as a mistake in the UI flow. This is a skill issue on my part.
This commit is contained in:
parent
e2a563f309
commit
eed7c07156
|
@ -1470,10 +1470,11 @@ async fn credential_update_exec(
|
||||||
Ok(status) => {
|
Ok(status) => {
|
||||||
if !status.can_commit {
|
if !status.can_commit {
|
||||||
display_warnings(&status.warnings);
|
display_warnings(&status.warnings);
|
||||||
|
// Reset the loop
|
||||||
|
println!("Changes have NOT been saved.");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
// Reset the loop
|
// Can proceed
|
||||||
println!("Changes have NOT been saved.");
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!("An error occurred -> {:?}", e);
|
eprintln!("An error occurred -> {:?}", e);
|
||||||
|
|
Loading…
Reference in a new issue