Updated "prompPassword" to include custom message.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
Reference in New Issue
Block a user