(start_login): print a different warning with `-a otp'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6426 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-06 02:47:59 +00:00
parent 085dff975f
commit 69a24aca75

View File

@@ -1299,9 +1299,13 @@ start_login(char *host, int autologin, char *name)
user = getenv("USER");
#ifdef AUTHENTICATION
if (auth_level < 0 || autologin != AUTH_VALID) {
if(!no_warn)
printf("User not authenticated. "
"Using plaintext username and password\r\n");
if(!no_warn) {
printf("User not authenticated. ");
if (require_otp)
printf("Using one-time password\r\n");
else
printf("Using plaintext username and password\r\n");
}
if (require_otp) {
addarg(&argv, "-a");
addarg(&argv, "otp");