mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Save two more kay strokes (#1708)
This commit is contained in:
parent
e18699bda5
commit
4f3bfd1025
|
@ -203,6 +203,7 @@ impl CommonOpt {
|
||||||
ToClientError::NeedLogin(username) => {
|
ToClientError::NeedLogin(username) => {
|
||||||
if !Confirm::new()
|
if !Confirm::new()
|
||||||
.with_prompt("Would you like to login again?")
|
.with_prompt("Would you like to login again?")
|
||||||
|
.default(true)
|
||||||
.interact()
|
.interact()
|
||||||
.expect("Failed to interact with interactive session")
|
.expect("Failed to interact with interactive session")
|
||||||
{
|
{
|
||||||
|
@ -223,6 +224,7 @@ impl CommonOpt {
|
||||||
ToClientError::NeedReauth(username) => {
|
ToClientError::NeedReauth(username) => {
|
||||||
if !Confirm::new()
|
if !Confirm::new()
|
||||||
.with_prompt("Would you like to re-authenticate?")
|
.with_prompt("Would you like to re-authenticate?")
|
||||||
|
.default(true)
|
||||||
.interact()
|
.interact()
|
||||||
.expect("Failed to interact with interactive session")
|
.expect("Failed to interact with interactive session")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue