Updated "prompPassword" to include custom message.

This commit is contained in:
2025-02-27 12:20:27 +00:00
parent b28be36e42
commit 30e8a5c292
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,11 +2,11 @@
#include "herror.h" #include "herror.h"
#include "dynmem.h" #include "dynmem.h"
int prompPassword(char *password) int prompPassword(char *password, const char *msg)
{ {
struct termios oldt, newt; struct termios oldt, newt;
printf("Please enter your unique password:"); printf(msg);
try try
{ {
// Disable echo // Disable echo
+1 -1
View File
@@ -8,7 +8,7 @@
#include "ui.c" #include "ui.c"
int prompPassword(char *password); int prompPassword(char *password, const char *msg);
char *prompNormalRequest(char *message); char *prompNormalRequest(char *message);
#endif // !UI_H #endif // !UI_H