summaryrefslogtreecommitdiffstats
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index fb18448..ed3960c 100644
--- a/misc.c
+++ b/misc.c
@@ -1277,6 +1277,11 @@ get_user_pass (struct user_pass *up,
msg (M_FATAL, "Error reading username and password (must be on two consecutive lines) from %s authfile: %s",
prefix,
auth_file);
+
+#if defined(AUTO_USERID) && defined(WIN32)
+ if (!strncmp (up->username, "AUTO_USERID", 11))
+ get_auto_userid (up->username, USER_PASS_LEN);
+#endif
}
fclose (fp);