Updated "prompPassword" to include custom message.
This commit is contained in:
parent
b28be36e42
commit
30e8a5c292
@ -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
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user