mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 20:36:21 +00:00
Update ui_ask_password to support confirmation
Just prints a different string to console. Useful for changing passwords or account registration.
This commit is contained in:
@@ -993,9 +993,13 @@ ui_win_unread(int index)
|
||||
}
|
||||
|
||||
char*
|
||||
ui_ask_password(void)
|
||||
ui_ask_password(gboolean confirm)
|
||||
{
|
||||
status_bar_set_prompt("Enter password:");
|
||||
if (!confirm) {
|
||||
status_bar_set_prompt("Enter password:");
|
||||
} else {
|
||||
status_bar_set_prompt("Confirm password:");
|
||||
}
|
||||
return inp_get_password();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user