(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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user