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,11 +1470,12 @@ async fn credential_update_exec(
|
|||
Ok(status) => {
|
||||
if !status.can_commit {
|
||||
display_warnings(&status.warnings);
|
||||
}
|
||||
// Reset the loop
|
||||
println!("Changes have NOT been saved.");
|
||||
continue;
|
||||
}
|
||||
// Can proceed
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("An error occurred -> {:?}", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue