Updated "prompPassword" to include custom message.

This commit is contained in:
Afonso Clerigo Mendes de Sousa 2025-02-27 12:20:27 +00:00
parent b28be36e42
commit 30e8a5c292
2 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
#include "herror.h"
#include "dynmem.h"
int prompPassword(char *password)
int prompPassword(char *password, const char *msg)
{
struct termios oldt, newt;
printf("Please enter your unique password:");
printf(msg);
try
{
// Disable echo

View File

@ -8,7 +8,7 @@
#include "ui.c"
int prompPassword(char *password);
int prompPassword(char *password, const char *msg);
char *prompNormalRequest(char *message);
#endif // !UI_H