about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorThorben Günther <admin@xenrox.net>2021-03-11 14:38:27 +0100
committerThorben Günther <admin@xenrox.net>2021-03-11 14:40:17 +0100
commit71236a0d5a47277d55caa5a09befa97ccabe7fec (patch)
tree5d2a3585322f72bad73060fa4fce59afadd6d8f5 /src/command
parent96580f917b5c0a061e7bf41714cf48c8e89cd5f8 (diff)
downloadprofani-tty-71236a0d5a47277d55caa5a09befa97ccabe7fec.tar.gz
Update ui_ask_password to support confirmation
Just prints a different string to console.
Useful for changing passwords or account registration.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 55965690..60b7010b 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -438,7 +438,7 @@ cmd_connect(ProfWin* window, const char* const command, gchar** args)
 
             // no account password setting, prompt
         } else {
-            account->password = ui_ask_password();
+            account->password = ui_ask_password(false);
             conn_status = cl_ev_connect_account(account);
             free(account->password);
             account->password = NULL;
@@ -450,7 +450,7 @@ cmd_connect(ProfWin* window, const char* const command, gchar** args)
         // connect with JID
     } else {
         jid = g_utf8_strdown(user, -1);
-        char* passwd = ui_ask_password();
+        char* passwd = ui_ask_password(false);
         conn_status = cl_ev_connect_jid(jid, passwd, altdomain, port, tls_policy, auth_policy);
         free(passwd);
     }